Luminosity for Obj model

Started by PG, April 03, 2009, 10:39:00 AM

Previous topic - Next topic

PG

Hey guys,
I'm trying to do a scene in which all light sources are pointing towards the camera and so a model I've placed in the scene (a cruise ship) is in complete darkness. Is there any way I can increase the luminosity of the textures that are built into the obj file? I tried, with a different model, to increase the luminosity with a default shader but I don't think it had any textures because the whole thing went white.
Don't really deal with surface shaders most of the time :D I just want them to be visible without adding light sources that would mess up the original lighting.
Figured out how to do clicky signatures

Matt

The luminosity has its own texture settings. You probably want to give it the same texture as the diffuse colour.

Matt
Just because milk is white doesn't mean that clouds are made of milk.

PG

Ah, scratch that. A warning came up with OBJReader: could not open mtllib. Attempted "G:\Terragen 2\Models\cruise" and "cruise"
There is a material library called cruise ship.mtl so why it's looking for one called cruise I don't know, the model itself is called cruise ship too. Is there some way I can fix this? Maybe with library and user content folders in preferences?
Figured out how to do clicky signatures

Tangled-Universe

ehrr....is it me or can't you just simply rename the .mtl-file?

PG

Lol. that'd be nice. ;D
I just tried it but it didn't work :-\
I think that it's looking for a folder called cruise because it can't find a material library in the same folder as the model file
Figured out how to do clicky signatures

Tangled-Universe

Quote from: PG on April 03, 2009, 04:24:09 PM
Lol. that'd be nice. ;D
I just tried it but it didn't work :-\
I think that it's looking for a folder called cruise because it can't find a material library in the same folder as the model file

If I remember correctly OBJ can have problems with folder/filenames....it doesn't like spaces etc.

So maybe if you rename your file to cruise_ship?

PG

#6
Na I'm still getting the warning. The funny thing is, pretty much every result on google about obj and the mtl library is about how most people don't provide the .mtl file. But now I've got it and it doesn't work ;D

Edit: It does work. I forgot to go into the obj file and change the link to the material library. I'm just rendering it now to see if the materials show up properly.
Figured out how to do clicky signatures

Mandrake


PG

Thanks, I'll give that a go when I get back from work.
Figured out how to do clicky signatures

PG

OK I'm back from work, short shift thankfully, and tried poseray but don't really know what it is I should be changing. The textures that the cruise ship uses were missing from the download pack so the first thing I did was download and attach another one. But past that I don't know what I'm doing. All I want to do is have the windows emit a certain amount of soft light and maybe some diffuse lighting on the rest of the boat to mirror the rather "diverse" lighting of the scene. I saw an option for "reflectivity" on the finish option in Materials but don't know how effective that would be for me. I would upload the model but obviously I don't have distribution rights. But it's a free object so here's the link just click on the image.
http://3dcollections.net/?a=download&id=9936
Figured out how to do clicky signatures

Mohawk20

You have to add luminosity in TG.
The default shader that textures the windows has a luminosity setting, where you can browse to an image map, or just set a colour and strength.
Howgh!

PG

I tried that but the windows are, for some reason, grouped with the top of the ship. So if I add luminosity to them with TG2 then half the ship starts glowing ;D
Figured out how to do clicky signatures

Mandrake

Well, A wise old ogre once told me, that, it's often easier to build your own model, then to fix someone else's.

PG

Would be better if I knew how to. I tried it a few times and only managed to make a wonky box. :-\ Anyhow, I managed to detach the windows into their own model and retain the same origin as the rest of the ship so I can load the two (ship and windows) and apply luminosity to just the windows.
Figured out how to do clicky signatures

Mandrake