How To? Mirror and horizont

6 messages Options
Embed this post
Permalink
ahooge

How To? Mirror and horizont

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi,

 

i’m searching for solutions or tips for 2 things.

 

First is reflection in 3D-Space. I’ve seen a few examples of reflection in 3D Space:

http://www.flashpunk.de/_junk/twitter3D/

http://sjeiti.com/test/pv3d/cubejunky/index.html

http://www.pioneer.nl/nl/flash/products/kuro2007/experience.html

 

Some time ago, i did reflection with a „ReflectionMovieClip“, but aftern seen the examples i asked me, if there is a better way, than using a MovieMaterial with reflection in it. In the cubejunky game, there are reflections of whole cubes. How to doe that?

 

 

Second question ist, how to do a horizon. In the following example, sombody „fakes“ the horizon by moving a gradient, if the camera moves. But that would not work, if the camera should rotate left or right. Is there a way to do that? It should even look like in the example, with the smooth border between ground and sky.

http://www.tyleregeto.com/?cat=12&paged=3

 

Thank you very, very much

Axel

 


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
o renken

Re: How To? Mirror and horizont

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hey Axel,

thanks for posting my twitter3D-app ;-) where did you get the link from?

let me think how i did it, it was a few month ago...  if i remember correctly is a second plane below the original with a bitmapData and a gradientMask applied on it. Dont forget to cache both as bitmap.

-olee

2008/1/23, Axel Hoogestraat <[hidden email]>:

Hi,

 

i'm searching for solutions or tips for 2 things.

 

First is reflection in 3D-Space. I've seen a few examples of reflection in 3D Space:

http://www.flashpunk.de/_junk/twitter3D/

http://sjeiti.com/test/pv3d/cubejunky/index.html

http://www.pioneer.nl/nl/flash/products/kuro2007/experience.html

 

Some time ago, i did reflection with a „ReflectionMovieClip", but aftern seen the examples i asked me, if there is a better way, than using a MovieMaterial with reflection in it. In the cubejunky game, there are reflections of whole cubes. How to doe that?

 

 

Second question ist, how to do a horizon. In the following example, sombody „fakes" the horizon by moving a gradient, if the camera moves. But that would not work, if the camera should rotate left or right. Is there a way to do that? It should even look like in the example, with the smooth border between ground and sky.

http://www.tyleregeto.com/?cat=12&paged=3

 

Thank you very, very much

Axel

 


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://www.renkster.de/
_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
lubbers

Re: How To? Mirror and horizont

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hey there:
 
Horizon:
this is from memory, but something like
 
make 2nd viewport with own camera [like sky viewport + skyScene]
cube with panes with desired texture in skyscene [play around with dimensions]
set focus and zoom of both cams to same values
render both cams.
 
depending of game action the sky cam may move, but usually remains stationary
 
good luck
 
Theo
-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of o renken
Sent: woensdag 23 januari 2008 13:02
To: [hidden email]
Subject: Re: [Papervision3D] How To? Mirror and horizont

Hey Axel,

thanks for posting my twitter3D-app ;-) where did you get the link from?

let me think how i did it, it was a few month ago...  if i remember correctly is a second plane below the original with a bitmapData and a gradientMask applied on it. Dont forget to cache both as bitmap.

-olee

2008/1/23, Axel Hoogestraat <[hidden email]>:

Hi,

 

i'm searching for solutions or tips for 2 things.

 

First is reflection in 3D-Space. I've seen a few examples of reflection in 3D Space:

http://www.flashpunk.de/_junk/twitter3D/

http://sjeiti.com/test/pv3d/cubejunky/index.html

http://www.pioneer.nl/nl/flash/products/kuro2007/experience.html

 

Some time ago, i did reflection with a „ReflectionMovieClip", but aftern seen the examples i asked me, if there is a better way, than using a MovieMaterial with reflection in it. In the cubejunky game, there are reflections of whole cubes. How to doe that?

 

 

Second question ist, how to do a horizon. In the following example, sombody „fakes" the horizon by moving a gradient, if the camera moves. But that would not work, if the camera should rotate left or right. Is there a way to do that? It should even look like in the example, with the smooth border between ground and sky.

http://www.tyleregeto.com/?cat=12&paged=3

 

Thank you very, very much

Axel

 


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://www.renkster.de/

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
ahooge

Re: How To? Mirror and horizont

Reply Threaded More More options
Print post
Permalink
In reply to this post by o renken
Some javascript/style in this post has been disabled (why?)

Hi olee,

 

thanks for you answer. This is like i did, the last time. The ReflectionMovieclip use that, too.

I have to think about, how to change the reflection distance, if the object moves in y-axis.

 

Or has anybody another solution?

 

The link is the 13th from above at:

http://blog.davr.org/pv3d-examples/

 

Many examples there, but some deadlinks.

 

Axel

 

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von o renken
Gesendet: Mittwoch, 23. Januar 2008 13:02
An: [hidden email]
Betreff: Re: [Papervision3D] How To? Mirror and horizont

 

Hey Axel,

thanks for posting my twitter3D-app ;-) where did you get the link from?

let me think how i did it, it was a few month ago...  if i remember correctly is a second plane below the original with a bitmapData and a gradientMask applied on it. Dont forget to cache both as bitmap.

-olee

2008/1/23, Axel Hoogestraat <[hidden email]>:

Hi,

 

i'm searching for solutions or tips for 2 things.

 

First is reflection in 3D-Space. I've seen a few examples of reflection in 3D Space:

http://www.flashpunk.de/_junk/twitter3D/

http://sjeiti.com/test/pv3d/cubejunky/index.html

http://www.pioneer.nl/nl/flash/products/kuro2007/experience.html

 

Some time ago, i did reflection with a „ReflectionMovieClip", but aftern seen the examples i asked me, if there is a better way, than using a MovieMaterial with reflection in it. In the cubejunky game, there are reflections of whole cubes. How to doe that?

 

 

Second question ist, how to do a horizon. In the following example, sombody „fakes" the horizon by moving a gradient, if the camera moves. But that would not work, if the camera should rotate left or right. Is there a way to do that? It should even look like in the example, with the smooth border between ground and sky.

http://www.tyleregeto.com/?cat=12&paged=3

 

Thank you very, very much

Axel

 


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://www.renkster.de/


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
o renken

Re: How To? Mirror and horizont

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
well.. i read some days before somebody (was it andy? ) used a second camera from straight top to draw a shadowmap. maybe you can port this thougt to draw a mirrormap? could be interessting... *guess*

-olee

2008/1/23, Axel Hoogestraat <[hidden email]>:

Hi olee,

 

thanks for you answer. This is like i did, the last time. The ReflectionMovieclip use that, too.

I have to think about, how to change the reflection distance, if the object moves in y-axis.

 

Or has anybody another solution?

 

The link is the 13th from above at:

http://blog.davr.org/pv3d-examples/

 

Many examples there, but some deadlinks.

 

Axel

 

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von o renken
Gesendet: Mittwoch, 23. Januar 2008 13:02
An: [hidden email]
Betreff: Re: [Papervision3D] How To? Mirror and horizont

 

Hey Axel,

thanks for posting my twitter3D-app ;-) where did you get the link from?

let me think how i did it, it was a few month ago...  if i remember correctly is a second plane below the original with a bitmapData and a gradientMask applied on it. Dont forget to cache both as bitmap.

-olee

2008/1/23, Axel Hoogestraat <[hidden email]>:

Hi,

 

i'm searching for solutions or tips for 2 things.

 

First is reflection in 3D-Space. I've seen a few examples of reflection in 3D Space:

http://www.flashpunk.de/_junk/twitter3D/

http://sjeiti.com/test/pv3d/cubejunky/index.html

http://www.pioneer.nl/nl/flash/products/kuro2007/experience.html

 

Some time ago, i did reflection with a „ReflectionMovieClip", but aftern seen the examples i asked me, if there is a better way, than using a MovieMaterial with reflection in it. In the cubejunky game, there are reflections of whole cubes. How to doe that?

 

 

Second question ist, how to do a horizon. In the following example, sombody „fakes" the horizon by moving a gradient, if the camera moves. But that would not work, if the camera should rotate left or right. Is there a way to do that? It should even look like in the example, with the smooth border between ground and sky.

http://www.tyleregeto.com/?cat=12&paged=3

 

Thank you very, very much

Axel

 


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://www.renkster.de/


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://www.renkster.de/
_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
ahooge

Re: How To? Mirror and horizont

Reply Threaded More More options
Print post
Permalink
In reply to this post by lubbers
Some javascript/style in this post has been disabled (why?)

Hello Theo,

 

thanks für your answer. I’m not sure, if i understood that.

I have to place a Camera inside a Cube, pointing to a Border of 2 Sides. The Sides are getting Materials with the White and Gray Gradients.

The Cube with the Camera inside is moved to anywhere, outside the primary Renderscene with my Object.

And when i rotate the first Cam, i also rotate the „skycam“ ??

 

Or have i do this in an own scene, instead move the cube outside the visible area?

 

Thank you

Axel

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von tro
Gesendet: Mittwoch, 23. Januar 2008 13:14
An: [hidden email]
Betreff: Re: [Papervision3D] How To? Mirror and horizont

 

Hey there:

 

Horizon:

this is from memory, but something like

 

make 2nd viewport with own camera [like sky viewport + skyScene]

cube with panes with desired texture in skyscene [play around with dimensions]

set focus and zoom of both cams to same values

render both cams.

 

depending of game action the sky cam may move, but usually remains stationary

 

good luck

 

Theo

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of o renken
Sent: woensdag 23 januari 2008 13:02
To: [hidden email]
Subject: Re: [Papervision3D] How To? Mirror and horizont

Hey Axel,

thanks for posting my twitter3D-app ;-) where did you get the link from?

let me think how i did it, it was a few month ago...  if i remember correctly is a second plane below the original with a bitmapData and a gradientMask applied on it. Dont forget to cache both as bitmap.

-olee

2008/1/23, Axel Hoogestraat <[hidden email]>:

Hi,

 

i'm searching for solutions or tips for 2 things.

 

First is reflection in 3D-Space. I've seen a few examples of reflection in 3D Space:

http://www.flashpunk.de/_junk/twitter3D/

http://sjeiti.com/test/pv3d/cubejunky/index.html

http://www.pioneer.nl/nl/flash/products/kuro2007/experience.html

 

Some time ago, i did reflection with a „ReflectionMovieClip", but aftern seen the examples i asked me, if there is a better way, than using a MovieMaterial with reflection in it. In the cubejunky game, there are reflections of whole cubes. How to doe that?

 

 

Second question ist, how to do a horizon. In the following example, sombody „fakes" the horizon by moving a gradient, if the camera moves. But that would not work, if the camera should rotate left or right. Is there a way to do that? It should even look like in the example, with the smooth border between ground and sky.

http://www.tyleregeto.com/?cat=12&paged=3

 

Thank you very, very much

Axel

 


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://www.renkster.de/


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org