distorted waveset reflection

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: distorted waveset reflection

Postby D'Lanor » Sun Nov 15, 2009 3:19 pm

Since I wrote that Python code I guess I should add the waveset visibility swap. I will look into it.

Are your waveset objects still called RpondWav and RpondWavN?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: distorted waveset reflection

Postby D'Lanor » Sun Nov 15, 2009 4:02 pm

Ok, here you go. If those wavesets have different names now you need to change them in the code. (And I assumed that the 'N' in RpondWavN stands for night)

SwapButton_with_waveset.zip
(4.58 KiB) Downloaded 224 times
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: distorted waveset reflection

Postby Jojon » Sun Nov 15, 2009 5:14 pm

Sorry for sidetracking briefly.

I am not qualified to deal with your python issues, which would reasonably indeed be where you want to toggle the visibility of the wavesets, at the same time as you switch pages, but would just like to make a small note, for future reference:

I believe the visregion references in your alcscript should be list items.
I.e:
Code: Select all
RpondWavN:
    visual:
        visregions:
          - Nvisreg

 ...rather than:

RpondWavN:
    visual:
        visregions:
              softvolume: Nvisreg


(Just noticed that you had a double indentation on the item, as well...)
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: distorted waveset reflection

Postby Justintime9 » Mon Nov 16, 2009 12:57 am

Splendid, that seems to have done the trick. What exactly did you do to make it work? I saw that a spot for the wavesets was there, but was there a specific variable that had to be changed to get the visibility work? (just for my information in case I may use it in the future.

There is one small but annoying problem however, while the separate EnvMaps work, when I walk right up to the railing in first person and look out at the sea (both day and night), At a certain position and distance the water will freeze, no waves moving, just the reflection.

@ Jojon, Thx, I'm sure that'll help me in the future (I'll be needing to use VisRegions soon anyway).
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: distorted waveset reflection

Postby D'Lanor » Mon Nov 16, 2009 3:34 pm

Justintime9 wrote:Splendid, that seems to have done the trick. What exactly did you do to make it work? I saw that a spot for the wavesets was there, but was there a specific variable that had to be changed to get the visibility work? (just for my information in case I may use it in the future.

Basically the new piece of Python code hides one waveset and shows the other at the same time the pages are swapped.
Code: Select all
                hideWaveset.draw.disable()
                hideWaveset.physics.suppress(true)
                showWaveset.draw.enable()
                showWaveset.physics.suppress(false)
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: distorted waveset reflection

Postby Justintime9 » Mon Nov 16, 2009 5:59 pm

Ah, I see. Any idea what's causing the waveset to freeze?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 1 guest

cron