Page 1 of 1

OBJ Files...

Posted: June 14th, 2009, 2:29 am
by Mizdimma
Ave, this is a killer program. I am a day old new to 3D Game programming so I have not the hang of things yet, but this is far easier than the other programs I have dled to start my knowledge in this art. I am however experianced in Daz Studio, basically with rendering and setting up scenes for hobby. I am considerably curious to know if there is a way to import .OBJ files into the system and use them as models for game play. I have plenty of them from Renderosity which would make excellent content for this program, and the masterpiece brewing up in storyline in mind. Thanks to the tutorials on youtube, I have gained much knowledge with basics, and think this program is going to be my main friend amongst the game makers. Any help to add .OBJ would be greatly appreciated, as well as to know where to set up the .obj files I have to access them in the program for use. Again thanks for a wonderful program, and killing the time I waste on this computer, LOL...

Mizdimma

Re: OBJ Files...

Posted: June 14th, 2009, 7:02 am
by Hirato
first, you need to makea directory inside packages/models to add the model (each model must have it's own directory)

in that directory, you either have 1 model, or several with an obj.cfg...
assuming it's only a single model, but the model in the directory as tris.obj

the skins can be loaded through the obj.cfg (don't ask for help here... I couldn't figure it out, so I just exported the model as an MD3), in the absence of an obj.cfg, just name it skin.jpg or skin.png...
an extra component of the skins are normal maps and masks, the masks are a sigel image where the colour channels each represent something

red - specularity
green - glow
blue - chrome/reflection

hope that helps...
I'm a bit hasty at the moment, I might bother finally writing the tutorial, but till then, harass us on IRC or preferably, take a look at how the other models are loaded

(and it's /mmodel {path relative to packages/models} to add the model)

Re: OBJ Files...

Posted: June 15th, 2009, 5:16 pm
by Mizdimma
Ok so I tried this, and I might have done it wrong. Irc and I dont get along very well, so I shall post it in here. So here is what I did.

First made the directory, V4, for the obj model. Copied the V4 model from its geometry directory in Daz to the file in which goes to this program, packages/models/v4.
Added the skin from a jpg mat from a character texture set. Renamed them to skin 1-4 .jpg

I went into another file, banana I think and copied the cfg files, this is where I think I might have screwed up but cant be for certain. I also copied the tris.obj in which you mentioned to see if this would effect the model being used.

Now a question has arrised, seeing that the character I am using (Model) is there a need to go into another program to make these files or is the tris, and cfg files a set of automatics which just need to be added to the model directory to get it to work? And if you could tell me how the directory should look if I am using a V4 model as the obj file, like would the tris be tris.V4.obj, and the cfg file be v4.cfg

Upon typing in the load code in editor text: packages/models/v4/v4.obj it just pasted the code nothing else, am going to try this again with a simpler model, just need the clarification on the tris and cfg.

Thanx greatly...I appreciate it.
Mizdimma

Re: OBJ Files...

Posted: December 11th, 2009, 1:40 pm
by bryanfblareunion
sorry this is too hard for me.

make sure u have a cfg file for the object :oops: