WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 07-02-2019, 04:06 PM
seowen1 seowen1 is offline
Join Date: May 2017
Posts: 17
Adding environment reflection maps to imported objects with baked lighting


I have some objects that I would like to add environment reflection maps to OSGB imported objects that have baked lighting. I have no issue baking lighting into a shell material and exporting into Vizard as an OSGB from 3ds Max. My problem comes when I attempt to apply a reflection map dynamically to the object via scripting.

Here's my attempt:
self.cubemaps = []

def addCubemapToVizObject(self, target, level=0):
	if level < range(len(self.cubemaps)):
		target.texture(self.cubemaps[level], unit=1)
		target.appearance(viz.ENVIRONMENT_MAP, unit=1)
		target.texblend(0.5, unit=1)
I can't seem to see the environment map at all, and I'm not sure I'm going about it correctly. I can create a basic sphere object and follow this tutorial:

That achieves expected results, but something is different when I start playing with imported objects. Any help?
Reply With Quote

cubemap, environment, lighting, reflection, texturing

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
lighting and on-the-fly objects michaelrepucci Vizard 12 02-11-2011 08:26 AM
adding new objects gina Vizard 4 11-29-2006 11:01 AM

All times are GMT -7. The time now is 11:05 AM.

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