home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


prefabgen

by pushplay on 04/03/2002 01:05, 35 messages, last message: 06/18/2002 13:01, 9969 views, last view: 05/17/2024 13:08

I'm releasing a utility called prefabgen: http://members.shaw.ca/pushplay/cube/utilities/prefabgen.zip which lets you redefine the prefabs file to let you make different kinds of arches. View the readme for instructions. If the readme isn't very clear, and I get the feeling that it may not be, then send me an e-mail and I'll change that.

Also, my e-mail address and cube webpage have changed, they're now pushplay@shaw.ca and http://members.shaw.ca/pushplay/cube/ respectively.

   Board Index    Go to next 20 messagesGo to last 20 messages

#1: :P

by pushplay on 04/03/2002 01:06

My cube webpage is going to looked screwy until blogger decides to stop dicking me around.

reply to this message

#2: cool thing

by Goetzenzar on 04/03/2002 01:26

i like that prog, but can u (or aard?), make that it simply outputs a .cfg file ?
(im too lazy to open up ms dos esque window and copy paste the stuff :p)
finally i can make some big arches quick (i never found out the formula how to create good lookin ones)

btw , next step: make this command/ prog ingame :p (+ some sort of hight value terrain editor in general, or perhaps only sim city 2k , or other heightmap editor compatibility - because it is not a speed problem whenu use slopes on a bigger scale 4x4 ones instead of the tiny 1x1 ones as seen in aard2)

ok i go sleep now.
again, v cool prog pushplay!

reply to this message

#3: hmm

by Goetzenzar on 04/03/2002 01:35

hmm, but it doesnt work ? or maybe im doin something wrong.. :|

reply to this message

#4: Re: hmm

by pushplay on 04/03/2002 04:09, refers to #3

You might want to take a look at the readme, but here's a gist of it.

Put the program in data. Type the command:
prefabgen 50 0.3 2 > prefabs.cfg
make some arches, and then try
prefabgen 50 1.2 0 > prefabs.cfg
and make some more arches. Some day soon I'll get off my ass and have it write a file instead of forcing you to redirect output, but I thought I would release this version in the meantime.

If that doesn't work, send me an e-mail.

I'm willing to work on a terrain engine, but someone will need to help me. It's not as simple as manipulation of a parabola. And Aard, you're entirely free to encorperate this into the engine.

reply to this message

#5: screw the command line

by pushplay on 04/03/2002 08:36

I found an hour of my day and changed it to create the file, and ask for input. I should have done it that way in the first place and was a lazy asshole for not doing it right. So redownload it and run it in cube/data/, the instructions are pretty simple now.

Someone tell me how it compiles on linux.

reply to this message

#6: Re: hmm

by Al_Capone on 04/04/2002 05:15, refers to #4

Terrain, you mean on how to make a one, I can give you a link that explains how factrial terrain is created. Oh and it even tells you where to fine the code, it runs on OpenGL.

http://www.gameprogrammer.com/fractal.html

reply to this message

#7: prefabgen

by Goetzenzar on 04/04/2002 10:35

pushplay, when i do bigger curves with your prog, i get spikes in them.
do other have testedtthe prog if it works correctly, for me, it still doesnt?

reply to this message

#8: Re: hmm

by pushplay on 04/05/2002 01:31, refers to #6

No, I understand the concept of generating a terrain, I just can't do it in Cube. Arches are easy because you generate a prefab file and cube takes that and makes arches from it's definition. I can't simply tell cube how I want the squares to be changed. So the only way to auto generate landscape would be to learn how cube files are generated and have a program make a map from scratch.

If anyone can prove me wrong, feel free to do so.

I updated prefabgen to allow you to generate a different style of arch, and a method that attempts to make these ceiling bumps that goetz wanted for some reason. I can't make it work without having spikes on the end that you need to delete manually. That kind of defeats the purpose, but the function is there if you want it.

Cube won't let you go over a certain height, and will send you back to the bottom if you do. Thus, If you make arches really wide with a steep slope, it will keep reaching that height and start back at the bottom, causing the spikes.

In conclusion to my rambling post, ask Aard, not me.

reply to this message

#9: Re: hmm

by Al_Capone on 04/05/2002 08:00, refers to #8

By the way, how do I change the scene ?

reply to this message

#10: pushplay

by Aardappel on 04/05/2002 22:02

I think you misunderstand. the fact that cube only offsets deltas in one direction doesn't affect what you can make with it. You just have to create the right offsets.

For example, to make a little "hill" with a 3 cube high peak, select an area and raise it 3, make it a floor heighfield (h), then lower all the edge vertices down (keys 8/9).

reply to this message

#11: Re: pushplay

by pushplay on 04/06/2002 05:33, refers to #10

I know how to manually make a hill, what I'm saying is that a terrain generating engine would require a way to interface with Cube. And at the moment I'm not seeing how that's possible.

reply to this message

#12: Re: pushplay

by Al_Capone on 04/06/2002 05:33, refers to #10

So it's only a matter of postion and high, right ? The way I look at it, cube is made of a bunch of blocks, like a set of building blocks, this would explain why you can create image, and location at the same time, but the size and position will always be offset or snap. So you can't just make any height.
Here's a good example http://www.btinternet.com/~andrew.h.cox/Cavernosa/shots/Test2.png

reply to this message

#13: Re: pushplay

by Al_Capone on 04/06/2002 05:45, refers to #11

I know what you saying, to RANDOMALY create terrain, cube would have to work with a script or a program in able to create it. This isn't preset, premade terrains we talking about here, How about a plug in option or a script option to edit the function of the game ? It would be alot easer then recompiling it and making it from scratch.

reply to this message

#14: Mountain and sky.

by Al_Capone on 04/06/2002 09:01

I found a engine that have both mountain and sky, looks good. http://www.flipcode.com/kurt/grain/shots/g-shot04.htm It can be downloaded here http://www.flipcode.com/kurt/grain/downloads.htm

reply to this message

#15: Re: pushplay

by pushplay on 04/07/2002 01:09, refers to #13

Yes, a way to create plug-ins would be a good solution to the problem. I don't know what you want me to do with the above links though.

reply to this message

#16: Re: pushplay

by Al_Capone on 04/07/2002 18:27, refers to #15

Don't worry about the above link, I was just sholving that into the programers face :) So let's suggest a plug in option or a script option shall we ?

reply to this message

#17: Terrain

by Bascule on 04/07/2002 20:49, refers to #8

Aard, it would be really good to pick up on this thread and incorporate a function (like arch/archvertex) into cube that could do simple terrain mapping over a selected area based on a simple script file. The prefabs text file is such a simple and cool way to introduce parameters into the game, that a similar one for terrain would be excellent.

Pushplay, prefabgen is very nice tool - I like your style. By the way, what did you compile it with, as I would like to play around with the code, but have no idea what to do/how to compile code to .exe

reply to this message

#18: Re: Terrain

by pushplay on 04/07/2002 21:36, refers to #17

Scripting would be the second option. It would be easier to use as an enduser, but also less powerful.

Compiling. Personally, I use Codewarrior: http://www.metroworks.com/ . But I'm in compsci, and not everyone needs a powerhouse IDE. I'd recommend you give something from Borland: http://www.borland.co.jp/cppbuilder/freecompiler/ a look. I haven't tried it myself, but I have heard good things about it.

If you want to learn to program, this book: http://www.amazon.com/exec/obidos/ASIN/0130895717/qid=1018207857/sr=1-1/ref=sr_1_1/002-1064443-6388836 is both thorough and very explicit. But if you stick with it you would later want something a bit more referency.

Anyways, prefabgen is a very simple piece of code to study. If you have any questions, just e-mail.

reply to this message

#19: Re: Terrain

by Al_Capone on 04/08/2002 00:09, refers to #18

An arm and a leg as useial, would XEmacs be able to compile to EXE ?

reply to this message

#20: bascule

by Aardappel on 04/08/2002 00:17

yeah some way to set vertex delta's by script would be cool. I'll add it to my todo list (no promises on when).

reply to this message

   Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54037183 visitors requested 71817310 pages
page created in 0.022 seconds using 9 queries
hosted by Boost Digital