Page 1 of 2

Cubes to model?

Posted: August 5th, 2010, 1:36 am
by AndyLangel
Hello there,

It been a while since i last used Sandbox, so i was wondering if it was possible to save cubes into like a model or a map entity?

I have made some castle walls out of cubes, and i know that you can select the wall, then copy and paste it, but is there any way to make the cubes into a map entity? or a way to group them so that you can move them around, rather than having to figure out where the wall will past before you paste it?

And assuming that there is no system for this, does anyone know how difficult a system like this would be to implement? Also, if we are going down this road- would this be a Engine based (C++) implementation, or a Cube based (Cube Script (Like an ingame config?)) one?

Thanks for any help in advance.

Re: Cubes to model?

Posted: August 5th, 2010, 1:57 am
by esequiel14
that would be super cool making game geometry into models!

Re: Cubes to model?

Posted: August 5th, 2010, 5:10 am
by Cankinder
Im a little bit confused..
cubes into models?
Wow, that is very strange
IF this exist say to me :D
See ya
-Victor The Cankinder

Re: Cubes to model?

Posted: August 5th, 2010, 6:22 am
by Mike
/writeobj
Enjoy!

Re: Cubes to model?

Posted: August 5th, 2010, 6:33 am
by PizzaLover101
Mike wrote:/writeobj
Enjoy!

I don't konw if that works, but I just select what ever I want, press C, place it where I want, press V

Re: Cubes to model?

Posted: August 5th, 2010, 10:44 am
by AndyLangel
Yeah, not really sure how the /writeobj command is used- but from what i tried i didn't do anything that i could notice. As far as copy and paste goes, that kinda gets tedious after awhile, trying to figure out where your wall will paste in and such- though that may be my only option.

I am going to see if i can model up anything to replace my cube walls with.

Re: Cubes to model?

Posted: August 5th, 2010, 12:09 pm
by arcones
If you want to interact with your wall then that's the best idea, but it'll get tedious making models for each and every possible way a wall good be angle/circled/etc. I've used copy and paste with great success, it's the only way I get big building's done.

Re: Cubes to model?

Posted: August 5th, 2010, 1:16 pm
by AndyLangel
Well, i have gotten /writeobj to work in sauerbraten- i just am unsure on how to use it?

Do you just call it with the area selected that you want to make into an object? Do you append a name for the object after the command? How do you spawn the object back into the world?

EDIT:

Nevermind, i have figured out how it works. :)

Re: Cubes to model?

Posted: August 5th, 2010, 9:59 pm
by esequiel14
Mike wrote:/writeobj
Enjoy!
wow so its possible but mike does the /writeobj command makes the whole map a model or just the selected area?

Re: Cubes to model?

Posted: August 5th, 2010, 11:50 pm
by AndyLangel
you select the entire area, X,Y, and Z axis-

Then you type the /writeobj (object Name)

but yeah, it works, but its a little tedious making that OBJ file a model =\ i think ill stick to the copy and paste method :P