Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
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 2 1 2
Prevent views from rendering specified entites #459291
05/05/16 17:09
05/05/16 17:09
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
NOFLAG1 and NOCAST aren't enought. I need something like c_ignore but for views. Is there anything like that? If no, do you know any workaround?
It will be used for a splitscreen game.


Thanks in advance!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Prevent views from rendering specified entites [Re: alibaba] #459292
05/05/16 17:11
05/05/16 17:11
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
view.genius is perfect for your needs.
All child entities (entity.parent = view.genius) will be ingored laugh

Re: Prevent views from rendering specified entites [Re: Ch40zzC0d3r] #459293
05/05/16 17:22
05/05/16 17:22
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
So I need to do a chain of entites linked to each other by .parent?
That's really inconvenient.
But thanks for the input!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Prevent views from rendering specified entites [Re: alibaba] #459294
05/05/16 17:29
05/05/16 17:29
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
You link all entities .parent to that one entity which is the camera.genius
I made a temp entity which follows the camera for this purpose only

Re: Prevent views from rendering specified entites [Re: Ch40zzC0d3r] #459295
05/05/16 17:31
05/05/16 17:31
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Okay I'll try this. But one more question: This method seems like preventing the rendering only for one view. What if I have 4 views and the entity should only be rendered on one view? It's world model so view_entities are no possibiliy.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Prevent views from rendering specified entites [Re: alibaba] #459296
05/05/16 17:53
05/05/16 17:53
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Use Material events with the render_view pointer!


"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: Prevent views from rendering specified entites [Re: Superku] #459298
05/05/16 18:22
05/05/16 18:22
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
That sounds reasonable! Thanks, I'll try that out!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Prevent views from rendering specified entites [Re: alibaba] #459299
05/05/16 18:26
05/05/16 18:26
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
That will work as long as you dont set a dif material as far as I remember.
Thats why I used my method

Re: Prevent views from rendering specified entites [Re: Ch40zzC0d3r] #459302
05/05/16 20:01
05/05/16 20:01
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Can I accomplish the example I've written before with your method? If yes can you direct me to the right direction? In the meanwhile I'll play around with superkus idea.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Prevent views from rendering specified entites [Re: alibaba] #459308
05/06/16 08:11
05/06/16 08:11
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Wow, render_view together with ENABLE_TREE works like a charm!

Ch40zzC0d3r: I'd like to try out your method, too! If you could explain a bit further how it works on many views, I'd be more than happy

Now let's see if I can combine Superku's method with existing shaders.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 1 of 2 1 2

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