Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 533 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Projection texture (FFP) #264490
05/06/09 13:31
05/06/09 13:31
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Code for creating projection shadows in Fixed Functions Pipiline also this code show how to use DirectX functions for creating projection matrix.
Working for all A7 edtitors, tested on Lite-c 7.70 Free
Also you can use models at any of you project(see readme)
LINK





laugh


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: Projection texture (FFP) [Re: XD1v0] #264492
05/06/09 13:34
05/06/09 13:34
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
nice, thanks wink


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Projection texture (FFP) [Re: Jaxas] #264496
05/06/09 13:46
05/06/09 13:46
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
wow... really nice smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Projection texture (FFP) [Re: VeT] #264502
05/06/09 14:17
05/06/09 14:17
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
very nice,
thanks

Re: Projection texture (FFP) [Re: Felixsg] #264504
05/06/09 14:31
05/06/09 14:31
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
I glad what my contribution useful wink


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: Projection texture (FFP) [Re: XD1v0] #264563
05/06/09 20:26
05/06/09 20:26
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
thank you very much. i realy need that!!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Projection texture (FFP) [Re: alibaba] #264584
05/07/09 02:16
05/07/09 02:16
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
Cool, thanks, this looks very usefull for my fish game.


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: Projection texture (FFP) [Re: KiwiBoy] #264589
05/07/09 06:25
05/07/09 06:25
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Nice! Thanks! smile

Re: Projection texture (FFP) [Re: Cowabanga] #264685
05/07/09 14:30
05/07/09 14:30
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
this is great actually, especially since i use lite-c... i'll definately be playing with it.. am wondering tho... could you blur the edges or change the ambient? right now it looks like oil over the terrain... then again the 4th demo looks great... one question.. could this be used for decals? i'm trying to implement it but right now its saying 'crash in screen_render_entities'.. any quick hints on implementing it?

Last edited by darkinferno; 05/07/09 15:21.
Re: Projection texture (FFP) [Re: darkinferno] #264706
05/07/09 16:46
05/07/09 16:46
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Quote:
i'm trying to implement it but right now its saying 'crash in screen_render_entities'.

How did you use screen_render_entities?
This function render rEnt(array of pointers to entities) and create bmap for projection, so before render you must set this pointers to render entities.
function screen_render_entities (Pos,Ang,fov,LIST_COUNT)
LIST_COUNT - count of render entities
So if you want render 1 entity
Code:
rEnt[0] = my;
screen_render_entities (Pos,Ang,fov,0)

2 entities
Code:
rEnt[0] = my;
rEnt[1] = you;
screen_render_entities (Pos,Ang,fov,1)


Quote:
could this be used for decals?

I think its very complicate, before using FFP shader you must undestand that in FFP you can not controll process of drawing projected texture on model so this projection do not clip and have invert projection.

Quote:
could you blur the edges or change the ambient?

That easy, you can blur factor in screen_render_entities -> screen_to_1024.
To change ambient I can do bmap more brightly, just add ambient vector to fcol (see function pixel_blur)

Code:
fcol.x /= count;fcol.y /= count;fcol.z /= count;
fcol.x = minv(fcol.x+64,255);fcol.y = minv(fcol.y+64,255);fcol.z = minv(fcol.z+64,255);
pixel = pixel_for_vec(fcol,NULL,888);



A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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