Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TedMar, dr_panther), 1,049 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Alpha #418376
02/24/13 11:28
02/24/13 11:28
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
I have a model with a skirt. It has alpha. When i import the object how can i make it visible from the back and front? Must it be imported apart from the other objects? Also why do i can see objects with alpha through other objects with alpha settings?

P.S: I'm still looking for a a animator.

Thanks

Re: Alpha [Re: Mythran] #418377
02/24/13 11:32
02/24/13 11:32
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
32 bit textures (alpha mapped) always disable the Z-Buffer (renders to front)
You have 2 options now:
1. Set your texture to 24bit
2. Apply this material with shader:
Code:
MATERIAL *mat_alphatest = 
{
  effect =
  "
    technique alpha_test
    {
      pass p0
      {
        zWriteEnable = true;
        alphaTestEnable = true;
        alphaBlendEnable = false;
      }
    }
  ";
}


Re: Alpha [Re: Ch40zzC0d3r] #418378
02/24/13 12:29
02/24/13 12:29
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Canīt It be done in med? I have no code...

Re: Alpha [Re: Mythran] #418396
02/24/13 15:04
02/24/13 15:04
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Originally Posted By: Mythran
Canīt It be done in med? I have no code...


As I said set Textures to 24 bit, this can be done via MED.
But remind, everything ehich is transparent will be black.

Re: Alpha [Re: Ch40zzC0d3r] #418420
02/24/13 15:26
02/24/13 15:26
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
It made no diffrence.. I have de texture map and the alpha map. I applyed them, and it works. Then i export it into the med. And the alpha map is doing nothing in there... Just the texture appears..

Re: Alpha [Re: Mythran] #418446
02/24/13 15:49
02/24/13 15:49
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292


This is how it looks after i do all that.

The Alpha is 24bit Targa.

The Texture is 24bits Bitmap.

Besides that the texture wont appear on both sides of the faces..

Last edited by Mythran; 02/24/13 15:50.
Re: Alpha [Re: Mythran] #418447
02/24/13 16:01
02/24/13 16:01
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
MED doesnt show the alpha maps...
Open the model with the engine and see how it looks there.

Re: Alpha [Re: Ch40zzC0d3r] #418448
02/24/13 16:02
02/24/13 16:02
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
It looks the same as in med..

Re: Alpha [Re: Mythran] #418449
02/24/13 16:32
02/24/13 16:32
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
I read an old tree tutorial on MED.
they had the model in two parts :
- main part without alpha
- 2nd part with aplha
By importing in MED the two models it worked.

What modeler do you use ?
Perhaps make one map only TGA having alpha ?

Re: Alpha [Re: ratchet] #418450
02/24/13 16:39
02/24/13 16:39
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
i'm using 3ds max. I've been seeing tutorials too.. It works just fine in max the problem is importing into med...

Yes that is correct. The alpha is measured in greyscale. In wich Withe is absolutely opaque and black shows nothing. All greys in between are levels os transparency. I have the texture as i explaned (Part 1 (i guess?)) and Part 2 the alpha itself (Black & White). When i import into med it seems to be ignoring the alpha, i've been messing arround, but nothing works. And this happends even inside the game.

You can see the model in the What are you working on section.. everything is working as it should...

Last edited by Mythran; 02/24/13 16:41.
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1