Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
I have a Question #131087
05/22/07 11:44
05/22/07 11:44
Joined: May 2007
Posts: 11
M
mohsen123 Offline OP
Newbie
mohsen123  Offline OP
Newbie
M

Joined: May 2007
Posts: 11
hi
i have 2 question and i wish someone help me
can any one tell me how can i make a mirror with c script ?
"i was see mirror sample in AUM . in this sample i shoud make another room and make alpha=30 or low the betweens. but now i wanna make a mirror texture"
can i do this ?

my 2th question :
in my game i make a view.
can i use this view as a texture for a mdl object in my room ?

thank 3DGS And this website.(and you)

Re: I have a Question [Re: mohsen123] #131088
05/23/07 01:39
05/23/07 01:39
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
I believe you want render to texture. If you have Pro, you can do this.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: I have a Question [Re: MrCode] #131089
05/24/07 07:00
05/24/07 07:00
Joined: May 2007
Posts: 11
M
mohsen123 Offline OP
Newbie
mohsen123  Offline OP
Newbie
M

Joined: May 2007
Posts: 11
thank u for answer me.

hey my freind
can you tell me more abaut render to texture?

i mean > i wanna have A cod that i can use a view as a texture.
and a cod for have a mirror texture in my room.
is it possible with c-script and SED?
is there any cod in SED that do this ?

Re: I have a Question [Re: mohsen123] #131090
05/28/07 15:46
05/28/07 15:46
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
SED is just a script editor for c-script, therefore it won't have its own commands.

I'm not going to explain the full process, but basically you use a view, a clip plane, the shader I just posted in the Shaders section (textureToScreen), and a little bit of simple math and vector rotations. Then you'll have a crystal clear mirror!


xXxGuitar511
- Programmer
Re: I have a Question [Re: xXxGuitar511] #131091
06/07/07 03:16
06/07/07 03:16
Joined: May 2007
Posts: 11
M
mohsen123 Offline OP
Newbie
mohsen123  Offline OP
Newbie
M

Joined: May 2007
Posts: 11
thank you .
but /
i steal can not find my answer.

Re: I have a Question [Re: mohsen123] #131092
06/07/07 04:26
06/07/07 04:26
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Render to texture feature will be available in A7 Commercial. Mirror such as in Pro is very slow. You can take the fake mirror solution from AUM in this case.


smile
Re: I have a Question [Re: D3D] #131093
06/07/07 05:59
06/07/07 05:59
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Actually its not slow at all. I don't have the best PC, and I still had 12 views rendering to textures at over 30 fps...

...it's not slow at all


xXxGuitar511
- Programmer
Re: I have a Question [Re: xXxGuitar511] #131094
06/07/07 10:14
06/07/07 10:14
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
I think he was talking about the mirror flag in wed in pro

Re: I have a Question [Re: lostclimate] #131095
06/30/07 15:14
06/30/07 15:14
Joined: May 2007
Posts: 11
M
mohsen123 Offline OP
Newbie
mohsen123  Offline OP
Newbie
M

Joined: May 2007
Posts: 11
no
Iwanna have a mirror in my game
ok ?
can any one help me ?

imust use a cod ?
or
use a new version ?
or ... ?
what can i do?

Re: I have a Question [Re: mohsen123] #131096
06/30/07 15:22
06/30/07 15:22
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
create camera_1 looking at you front of the wall
camera_1.bmap = bmap_for_entity(entity,0); //view will be showing at this entity so you will se yourself and everything behind you(mirror)
but you have to have pro version

waana see in action? look here web page

Last edited by tompo; 07/01/07 14:21.

Never say never.

Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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