WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-15-2008, 06:07 PM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
Me again!

Hi farshizzo,

Unfortunately the model is invisible, when i comment out the shader code the normal is mapped correctly now tho . I have taken the liberty of attaching the code and osg in the hope that you may be able to throw some light on this problem for me.

Kind regards
Attached Files
File Type: zip NormalTruck.zip (660.5 KB, 2126 views)
Reply With Quote
  #2  
Old 02-19-2008, 02:42 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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?
Reply With Quote
  #3  
Old 02-20-2008, 03:01 AM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
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
Reply With Quote
  #4  
Old 02-20-2008, 10:04 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Attached Files
File Type: zip BumpShader.zip (1.3 KB, 2117 views)
Reply With Quote
  #5  
Old 02-21-2008, 03:55 AM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
Thank You!

. Perfect, thank you
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -7. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC