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
0 registered members (), 18,561 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
Mirrors Lite-C #298382
11/14/09 15:26
11/14/09 15:26
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline OP
Member
muffel  Offline OP
Member
M

Joined: Oct 2009
Posts: 149
Germany
ENGLISH:
Is there any way to program mirrors with the lite-C free Version

I looked through the forum and the manuel but I didn't found anything which helps me.

I think I have to do this with VIEWs

I got a second VIEW running which renders like the normal camera on the scrren.
Because I want to have a mirror I have to render this second VIEW on a Object in 3D Space(I tried using a sprite), but this rendering on an object in 3D Space I didn't got running.


GERMAN:
Gibt es eine Möglichkeit mit der Lite-C free Edition Spiegel zu Programmieren.

Ich habe schon im Forum und dem Manual gesucht, habe aber nichts gefunden was mir helfen könnte.

Ich glaube ich muss dafür ein VIEW benutzen
Ich habe es schon geschafft eine zweite VIEW wie die Standart camera auf den Bildschirm zu rendern
Da ich ja einen Spiegel im 3D Bereich haben will, muss ich ja die VIEW auf eine ENTITY rendern(habe dafür ein Sprite verwndet). Dies kriege ich aber nicht hin.

muffel

Hope that you have understood my problem and that you can help me.

My Code:
Code:
#include <acknex.h>
#include <default.c>

ENTITY* monitorsprite;

VIEW* sec_cam = 
{
	layer = 1;
//	size_x = 200;
//	size_y = 150;
//	pos_x = 10;
//	pos_y = 10;
//	flags = (SHOW);
}
action mirror()
{
	me.ambient = 100;
	set(me,PASSABLE);
	reset(me,OVERLAY);
}
function main()
{

	
	level_load("flatter.hmp");
	vec_set(screen_color,vector(0,0,1)); 
	wait(-5);
	monitorsprite = ent_create("mirror.bmp",vector(0,0,0),mirror);
	wait(1);
	sec_cam.bmap = "mirror.bmp";
	set(sec_cam,SHOW);	
}



Re: Mirrors Lite-C [Re: muffel] #298386
11/14/09 16:06
11/14/09 16:06
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
For mirrors you must apply a mirror material and such materials are only available from Commercial Edition on.

Re: Mirrors Lite-C [Re: Tobias] #298388
11/14/09 16:17
11/14/09 16:17
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline OP
Member
muffel  Offline OP
Member
M

Joined: Oct 2009
Posts: 149
Germany
thanks for the reply
muffel

Re: Mirrors Lite-C [Re: muffel] #298397
11/14/09 17:37
11/14/09 17:37
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
ChrisB released a render-to-texture DLL that works with all versions i think, so you should still be able to get mirrors working without commercial.


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