entities as a light source

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

entities as a light source

by randomproof » Mon Dec 26, 2011 06:16

I was wondering if anyone knows if there is a way to make entities emit their own light. I'm 99% done with a fire/smoke mod but when I place a fire entity in a node, like a tree trunk, the entity is all black because there is no light shining on it.
 

User avatar
Hackeridze
Member
 
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Mon Dec 26, 2011 08:23

Maybe you should try to make node_update_single(pos)?
My game: RTMG
GENTOO USER
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Mon Dec 26, 2011 13:01

randomproof wrote:I was wondering if anyone knows if there is a way to make entities emit their own light. I'm 99% done with a fire/smoke mod but when I place a fire entity in a node, like a tree trunk, the entity is all black because there is no light shining on it.

But shouldn't fire be a node?
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Mon Dec 26, 2011 17:58

xyz wrote:
randomproof wrote:I was wondering if anyone knows if there is a way to make entities emit their own light. I'm 99% done with a fire/smoke mod but when I place a fire entity in a node, like a tree trunk, the entity is all black because there is no light shining on it.

But shouldn't fire be a node?

I don't want to remove the existing node, but show that it is on fire. I also need the on_step function to spread the fire and to make smoke.
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 14 guests

cron