Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 920 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
How to:Render Target? #208471
05/27/08 16:18
05/27/08 16:18
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
Hi there.. hum what i use for this? this is a object glow shader. this is just the render target struct, what i use for this? a entity? or what?
texture GlowMap1 : RENDERCOLORTARGET;

sampler GlowSamp1 = sampler_state
{
texture = <GlowMap1>;
AddressU = CLAMP;
AddressV = CLAMP;
AddressW = CLAMP;
MIPFILTER = NONE;
MINFILTER = LINEAR;
MAGFILTER = LINEAR;
};

texture GlowMap2 : RENDERCOLORTARGET ;

Re: How to:Render Target? [Re: MMike] #208473
05/27/08 16:25
05/27/08 16:25
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
this is not an object glow shader but two textures and one sampler written in hlsl. i think it's from fxcomposer?

you can't assign this to anything...

Re: How to:Render Target? [Re: Joey] #208486
05/27/08 17:16
05/27/08 17:16
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
no.. its for 3d studio max shader.

The model skin diffuse and such is working, but the real glow effect, is a render to target.. Does Gs have such?
i mean calling texture glow:rendercolortarget will create a target buffer?

how do i aaply the material to the object and at the same time do the post processing target :S
.. Gs shader could work like other programs do.. like fx composer etc.. i see many limitation.. Maybe Conitec could release a full HSLS support Dll no?

Last edited by MMike; 05/27/08 20:25.
Re: How to:Render Target? [Re: MMike] #208547
05/27/08 21:24
05/27/08 21:24
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
no it won't. you schdör me. that's not hlsl standard code but max specific stuff. you should seriously read a beginner's tutorial about shaders.

Re: How to:Render Target? [Re: Joey] #208560
05/27/08 23:04
05/27/08 23:04
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
hey im telling you.. its 3d max shader fx. I mean i don't know if you know but. 3d max can as shaders .Fx file as materials.. And the glow shader is a FX file, if i import it to render monkey it will work etc.. etc..

I just need to convert of course some materials problemas, the now problem is that. GS is weird with render target. I mean its hard for me to use it.
Butim expert at shader conversion, thgouh creating my own shaders is more difficult.

Re: How to:Render Target? [Re: MMike] #208562
05/27/08 23:35
05/27/08 23:35
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
afaik rendermonkey and fx composer are capable of reading/writing MAX spesific stuff.


3333333333
Re: How to:Render Target? [Re: Quad] #208564
05/28/08 00:44
05/28/08 00:44
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
hum but why you say specific?
just need to rename some vars and thats it. .
oh and the string tags that are not used for Gs.

Re: How to:Render Target? [Re: MMike] #208591
05/28/08 07:46
05/28/08 07:46
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
if it's just some renaming then you can do it by yourself, for sure?

Re: How to:Render Target? [Re: Joey] #208620
05/28/08 10:41
05/28/08 10:41
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
yes and i did.. but i got a problem.

texture GlowMap1 : RENDERCOLORTARGET;

sampler GlowSamp1 = sampler_state
{
texture = <GlowMap1>;
AddressU = CLAMP;
AddressV = CLAMP;
AddressW = CLAMP;
MIPFILTER = NONE;
MINFILTER = LINEAR;
MAGFILTER = LINEAR;
};

texture GlowMap2 : RENDERCOLORTARGET ;



The render color target semantics input is not acepted for GS. The glowmap2 won't be considered as a render color target and won't event work, so the fx file wont work if no render target are set. I though about assign somekind of material and then post process it, but this is a Object shader plus post processing using render to texture shader. thus renaming won't work because Gs has no render to texture feature developed like other engines do, that initialaze a render buffer and work with is.

I have TargetMap in A7 but not sure if it will do the job.

Re: How to:Render Target? [Re: MMike] #208637
05/28/08 14:25
05/28/08 14:25
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
it will. render to texture is implemented since a6, afaik. that's the problem, you're fiddling with a shader file which works for 3ds max and you think that it's standard compliant, though it isn't. you need to code some lines in lite-c or c-script to set up a render target.

Page 1 of 3 1 2 3

Moderated by  Blink, Hummel, Superku 

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