![]() |
|
#1
|
|||
|
|||
Is your model invisible or just black? How large is your model? That sample script assumes the model is very small. If your model is larger then the attenuation on the point light might not reach it.
|
#2
|
|||
|
|||
Me again!
Hi farshizzo,
Unfortunately the model is invisible, when i comment out the shader code the normal is mapped correctly now tho ![]() Kind regards |
#3
|
|||
|
|||
I modified the sample script from my previous post to load your osg file instead, and it worked fine. Did you use the *exact* same script with only the filenames changed?
|
#4
|
|||
|
|||
Normal Mapping
Hiya Farshizzo,
Yes, all I altered was: Code:
#ball = viz.add('basketball.osg') ball = viz.add('Truck01.osg') #normal_tex = viz.add('bball_normal.jpg') normal_tex = viz.add('mybodynormalsmap.jpg') Apart from altering the distance on the pivot camera and making the background blue that was all i did, but to no avail. Is that what you meant? Thank you for your patience with this matter, Kindest regards, Nige |
#5
|
|||
|
|||
I've attached a modified version of the script I posted that replaces the models/textures with yours. I've also made a small tweak to the fragment shader. Try these out, it should work.
|
#6
|
|||
|
|||
Thank You!
![]() |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
environment maps, scenes, and you! | vadrian | Vizard | 1 | 01-12-2005 04:04 PM |
generating images for panoramas using cube maps | bailenson | Vizard | 5 | 09-08-2004 08:32 PM |