Actor Reflection Tutorial!!!

Game Design, Story, Game Play.
Post Reply
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Actor Reflection Tutorial!!!

Post by federico »

After the useful tutoring fromGD1 and SpyreWolf, I wrote a little tutorial about Actor Reflection. The tut is here:

http://realitychess.altervista.org/actor_reflection/

At the bottom of the document you will find a downloadable .DOC version.
________________

Actor Reflection Tutorial
This tutorial assumes that you have an intermediate-advanced knowledge
about RF functionalities, that you know how to skin and export an actor
from Milkshape, that you know how to build an Actor using ActorStudio.

Pre-Requisites:

1) Milkshape3D (or any 3d modeler that can export to RF)
2) Photoshop (or GIMP, an editor that can create 32bit tga)

Texture Creation
First, let's start creating the texture of the reflection effect in
Photoshop. Create a new image using this parameters (RGB colors / Transparent Background).
Image

using a brush with a white color paint a shape (I choose an 'X'). then
apply a blur effect.
Image

You can easily set the tranparency of the image againt the invisible
background using the 'Opacity' and 'Fill' slider.
Image

When you are satisfied by the result export as 32bit tga image.

Model Setup
Open your model in Milkshape3d. Select the part of the model over which
you want to see the reflection effect. In this example I want to apply the
reflection only on the body of the car. Then apply the 'Duplicate Selection' command.
Image

Scale up the duplicated part. The scalng factor depends on the
dimension of the object. I used a little factor (1.01).
Image

Go to the Material Section and create a new Material. Apply it to the
selection and assign to this mateiral the reflection texture we created
before. Now check the SphereMapping button and rename the material in way that its name begins with SM0_ (Genesis3d will aply a spheremapping
to this material).
Image

You should crearly see the reflection effect moving the perspective
view.

Now comes the odd part of the work. Replace your tga reflection texture
with another bmp image. Choose a random one.
Export as bdy, and compile the act file.

Fix the TGA
Launch tga2gebmp2.exe and open your act file. The list of you material will appear.
Image

Choose the material you have setup for the reflection effect and then
click on 'Replace selected'. Now you can choose the original tga
texture we created before. Click 'Save changes' and exit.

The End Result
If all goes ok you should see the effect opening your act file in the
Viewer.
ImageImage

Variations
You could use any image as reflection texture. You simply have to find
the right balance between the alpha of the image and the spheremapping
effect. In the following case I use the same sky texture I'm using in
the Skydome of my level.
Image

I don't need to recompile anything. I can simply replace the texture
material using tga2gebmp2.exe
Image

This is the result in the Viewer.
ImageImage
Image

Credits are due to the the patience and devotion of GD1 and SpyreWolf.

_______________________
Federico Pitto @ 2006
http://realitychess.altervista.org/actor_reflection/
User avatar
Spyrewolf
Posts: 450
Joined: Tue Jul 05, 2005 4:53 am
Location: Wellington::New Zealand

Post by Spyrewolf »

Wow looks as if you got the gist of things!!!

that was a very well written tute and should be stickied! the car you made looks amazing with the reflection mesh on it!!!

Nice Work
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

looks good, but i have a question, u duplicated a part of the model just for spere mapping? wouldnt that increase the pollycount alot? like RF realy cant handle alot of pollys and making alot more just ro get a shere map is it realy worth it? or am i getting confused here?
*GD*
User avatar
Spyrewolf
Posts: 450
Joined: Tue Jul 05, 2005 4:53 am
Location: Wellington::New Zealand

Post by Spyrewolf »

looks good, but i have a question, u duplicated a part of the model just for spere mapping? wouldnt that increase the pollycount alot?
yep, this techniques although they're pretty, do have limitations (i.e a higher polycount) however, you can make the reflection map a lower poly count as it just reflection, but the end result will need extra poly's :/
Post Reply