Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 911 guests, and 3 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 3 1 2 3
Force 2 sided rendering #426050
07/15/13 23:28
07/15/13 23:28
Joined: Jul 2013
Posts: 22
S
Stratego Offline OP
Newbie
Stratego  Offline OP
Newbie
S

Joined: Jul 2013
Posts: 22
This is probably a stupid question, but off-hand does anyone know how to force 2-sided rendering for things like tree leaves? Is there a flag to set?

Re: Force 2 sided rendering [Re: Stratego] #426051
07/15/13 23:32
07/15/13 23:32
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You have to use a shader for this (for instance the diffuse lighting shader from the online tutorial -> shader workshops), then write
CullMode = None;
in the pass before the shader compile instructions.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Force 2 sided rendering [Re: Superku] #426052
07/15/13 23:35
07/15/13 23:35
Joined: Jul 2013
Posts: 22
S
Stratego Offline OP
Newbie
Stratego  Offline OP
Newbie
S

Joined: Jul 2013
Posts: 22
So, then do you think it makes more sense to just have double the leaf polygons, or go the shader way.

Thanks for the quick answer!

Last edited by Stratego; 07/15/13 23:35.
Re: Force 2 sided rendering [Re: Stratego] #426053
07/15/13 23:36
07/15/13 23:36
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Always the shader way!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Force 2 sided rendering [Re: Superku] #426054
07/15/13 23:39
07/15/13 23:39
Joined: Jul 2013
Posts: 22
S
Stratego Offline OP
Newbie
Stratego  Offline OP
Newbie
S

Joined: Jul 2013
Posts: 22
I'll give it a shot. Do you foresee me having any problems with transparency?

Thanks again! You are awesome!

Last edited by Stratego; 07/16/13 02:03.
Re: Force 2 sided rendering [Re: Stratego] #426055
07/15/13 23:59
07/15/13 23:59

M
Malice
Unregistered
Malice
Unregistered
M



Lol I remember when I ask for this as a flag in WED. And now we had a double sided material.
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=45446&Number=378337#Post378337

Manual says its in mtlFx.c
Quote:
mtl_twosided
mtl_twosided_alpha

Last edited by Malice; 07/16/13 00:17.
Re: Force 2 sided rendering [Re: ] #426057
07/16/13 00:32
07/16/13 00:32
Joined: Jul 2013
Posts: 22
S
Stratego Offline OP
Newbie
Stratego  Offline OP
Newbie
S

Joined: Jul 2013
Posts: 22
Well, setting CullMode = None; in the Diffuse shader worked good. I had to set the OVERLAY flag for it to sort correctly. Is that the correct way to do it? Or does anyone know of a better way?

Thanks Malice! I'll try that way too.

Edit: I have A7 Commercial which seems to not have the double sided material.

Last edited by Stratego; 07/16/13 00:39.
Re: Force 2 sided rendering [Re: Stratego] #426058
07/16/13 00:45
07/16/13 00:45

M
Malice
Unregistered
Malice
Unregistered
M



Hum A7 , what version of the A7 engine?

Re: Force 2 sided rendering [Re: ] #426059
07/16/13 00:47
07/16/13 00:47
Joined: Jul 2013
Posts: 22
S
Stratego Offline OP
Newbie
Stratego  Offline OP
Newbie
S

Joined: Jul 2013
Posts: 22
7.866. Latest addition as stated in my profile. Why do you ask?

Re: Force 2 sided rendering [Re: Stratego] #426060
07/16/13 00:59
07/16/13 00:59

M
Malice
Unregistered
Malice
Unregistered
M



I had A7 when I ask jcl for the two-sided material and I thought it was add to the A7. I must be mistaken.

Looking at the timeline I must have had A8.

Last edited by Malice; 07/16/13 01:01.
Page 1 of 3 1 2 3

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