Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (alibaba, vicknick), 1,379 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
custom rendering #232480
10/21/08 22:01
10/21/08 22:01
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
In the manual it says to return 1 from the material event to prevent the entity from being rendered. I have set ENABLE_RENDER and have a dummy technique just like in the manual (http://manual.conitec.net/prog_faq.htm).

Why does the entity still render itself?! I have tested it in C++ and LiteC. In C++ I tried as 1 and 1024 (_VAR(1)).

Re: custom rendering [Re: sheefo] #232682
10/23/08 06:45
10/23/08 06:45
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I've tried it and returning _VAR(1) still suppresses the rendering by the engine. Maybe you've also set another material event besides ENABLE_RENDER?

Re: custom rendering [Re: jcl] #232760
10/23/08 18:10
10/23/08 18:10
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
I does not work in 7.50 frown

I tried in 7.10 and it worked. I tried again in 7.50 and it doesn't work. Must be a bug.

Re: custom rendering [Re: sheefo] #232814
10/24/08 07:22
10/24/08 07:22
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
We have indeed changed that part of the code in 7.50. But it works here and when I look into the code, I see nothing suspicious. So I need an example where it does not work - can you upload the project or send it to Support?

Re: custom rendering [Re: jcl] #232948
10/25/08 11:40
10/25/08 11:40
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
I have just copied the code from the manual and tested it in a C++ app and in LiteC with some entities created with ent_create.

In 7.10 it works, the event is called and when I return 1 the mesh is not rendered by the engine. In 7.50 the event is called and dispite returning 1 the mesh is still rendered by the engine.

I have also noticed that models with no texture (even if it was assigned a material effect in MED) will not render. This didn't happen in 7.10.

Re: custom rendering [Re: sheefo] #233045
10/26/08 09:20
10/26/08 09:20
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Originally Posted By: The Bug List
Models without skin texture were not displayed (fixed in A7.54; they are now displayed with a white skin). Workaround: Don't create models without skin texture.


Re: custom rendering [Re: Spirit] #233047
10/26/08 10:02
10/26/08 10:02
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I have the same problem with ENABLE_RENDER.

Re: custom rendering [Re: Slin] #233171
10/27/08 10:26
10/27/08 10:26
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I think I found the problem now. This will be fixed in the next update.

Re: custom rendering [Re: jcl] #233261
10/27/08 18:38
10/27/08 18:38
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Thanks.


Moderated by  jcl, Nems, Spirit, Tobias 

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