Rendering question using ruby in SU
-
Hi guys,
Does anyone know how I can control the rendering of the scene in SketchUp using ruby? A lot of techniques (e.g. real-time shadow map, reflection, refraction, etc) require access to rendering.The reason why I need the knowledge here is that I'm creating a stereoscopic view(the true 3D for which u need to wear red&blue glasses) for SU. I basically have to rendering the scene twice, from different view perspective, on the same canvas to get an anaglyph, which looks like this:
.Thanks a lot,
Jinchao -
You can't do reflection and refraction in SU.
The only thing you can do is set the Style settings - same as what you do in the Styles Window. http://code.google.com/apis/sketchup/docs/ourdoc/renderingoptions.html
If you need access to the OpenGL rendering you can't use Ruby for that. You'll have to hook into it by other means.
btw, your image doesn't load.
Advertisement