delta3d
 Forum Index >  > Artists' Studio New Topic Post Reply
 How to give transperent in CAL3D animation?
Prev Topic Next Topic
   
jad_delta
 09/25/2008 04:59AM (Read 2887 times)  

Regular Poster

Status: offline
Forum User

Registered: 06/12/2008
Posts: 78
Hi,

I gave transparent material in Cal3D animation.
but, it displayed a gray color in application.
please explain How to give opacity/transparency in CAL3D animation?

Thanks in Advance,
JAD
 
Profile Email
 Quote
mr d
 10/07/2008 05:55PM  

Full Member

Status: offline
Forum User

Registered: 12/07/2005
Posts: 160
Hello

far as I can remember Cal3d's material file can handle 1 24-bit texture per object, no multisub, no real alpha.
However I'm told you should be able to replace the Cal material on the mesh through code, perhaps the shader manager, so you might inquire in the code area on how to do that.

Mr. D
 
Profile Email
 Quote
ErikJohnson
 10/08/2008 09:05PM  

Moderator

Status: offline
Forum User

Registered: 11/08/2004
Posts: 2851
This was recently fixed in the SVN trunk. You can now set the alpha value of the diffuse color in the CAL3D material.

There have been some reports that this might conflict with meshes that use multiple materials however.

-Erik
 
Profile Email
 Quote
mr d
 10/10/2008 01:25AM  

Full Member

Status: offline
Forum User

Registered: 12/07/2005
Posts: 160
Hello

Programmer tried with new version and it did work, still a problem of texture set for 2-sided showing up only as single.

Mr. D
 
Profile Email
 Quote
jad_delta
 10/13/2008 05:47AM  

Regular Poster

Status: offline
Forum User

Registered: 06/12/2008
Posts: 78
thanks for your replay.
where i have to download new SVN trunk version.
and please explain how i have to give the transperency.

Thanks in advance
JAD
 
Profile Email
 Quote
ErikJohnson
 10/13/2008 05:40PM  

Moderator

Status: offline
Forum User

Registered: 11/08/2004
Posts: 2851
You can download the latest Delta3D source via SVN checkout or from a Nightly Snapshot. FYI, this entails compiling Delta3D yourself.

To set the transparency of a CAL3D character via its material file, just set the diffuse color alpha value to something less than 255, as such:
PHP Formatted Code
<MATERIAL VERSION="1100" NUMMAPS="1">
    <AMBIENT>150 150 150 0</AMBIENT>
    <DIFFUSE>150 150 150 100</DIFFUSE>  <-alpha'd
    <SPECULAR>255 255 255 0</SPECULAR>
    <SHININESS>0</SHININESS>
    <MAP>marine_desopvest.tga</MAP>
</MATERIAL>

-Erik
 
Profile Email
 Quote
Content generated in: 0.73 seconds New Topic Post Reply
 All times are UTC. The time is now 08:47 AM.
Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 

About delta3d

delta3d is a game and simulation engine appropriate for a wide variety of simulation and entertainment applications. delta3d uses best-of-breed open source technologies to create a fully integrated game engine and with content creation tools.MORE

Twitter

User Functions





Don't have an account yet? Sign up as a New User!

Lost your password?