WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   environment map error help (https://forum.worldviz.com/showthread.php?t=5313)

BSUGeek 03-17-2015 07:43 AM

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)


shivanangel 03-17-2015 10:01 AM

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?

BSUGeek 03-17-2015 10:10 AM

I believe it's just 1 texture. is there a way to make it a cube map?

BSUGeek 03-20-2015 04:22 AM

I still don't understand the error I'm receiving... Can anyone help?

Jeff 03-20-2015 10:24 PM

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.


All times are GMT -7. The time now is 03:32 AM.

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