WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-17-2015, 07:43 AM
BSUGeek BSUGeek is offline
Member
 
Join Date: Oct 2014
Posts: 23
environment map error help

Here is my code. I keep getting an error "Failed to load texture: 'space1_posx.jpg" I don't understand what's happening. When i run it I just get a grey screen but I'm trying to get an outer space sky.

Code:
import viz
viz.go()

#Add Sky
env = viz.add(viz.ENVIRONMENT_MAP,'space1.jpg')
sky = viz.add('skydome.dlc')
sky.texture(env)
Reply With Quote
  #2  
Old 03-17-2015, 10:01 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
The tutorial you are following uses a series of textures to produce the panoramic object, one for each orientation, a cube map.

Is your sky a cube map or just one texture you are trying to use as a cube map?
Reply With Quote
  #3  
Old 03-17-2015, 10:10 AM
BSUGeek BSUGeek is offline
Member
 
Join Date: Oct 2014
Posts: 23
I believe it's just 1 texture. is there a way to make it a cube map?
Reply With Quote
  #4  
Old 03-20-2015, 04:22 AM
BSUGeek BSUGeek is offline
Member
 
Join Date: Oct 2014
Posts: 23
I still don't understand the error I'm receiving... Can anyone help?
Reply With Quote
  #5  
Old 03-20-2015, 10:24 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The viz.addEnvironmentMap command requires 6 textures. If you supply a filename that is a single texture you'll get an error. If you search for 'cubemap' and 'skybox' online you'll get an idea of what's required by this command. Also, the panorama demo in the Vizard help uses a cubemap. There maybe sites where you can download cubemaps that would work for your application.
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
random walk in piazza environment maya Vizard 7 01-15-2014 04:58 AM
create environment anurag sohane Vizard 0 01-12-2013 10:17 AM
Multi User Environment moneim230 Vizard 5 05-17-2011 05:56 PM
Open Position: Virtual Environment Programmer aarset Announcements 0 05-31-2009 07:23 AM
Getting a mirror to work in any environment Frank Verberne Vizard 5 03-27-2008 08:21 AM


All times are GMT -7. The time now is 01:03 PM.


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