Page 1 of 1

Draw types for luaenties

PostPosted: Sat Feb 04, 2012 16:34
by sapier
By now luaentities have only limited support for drawtypes:
  • cube
  • sprite

while nodes have:
  • normal (equivalent to cube)
  • plantlike
  • allfaces_optional
  • glasslike
  • fencelike
  • raillike
  • signlike
  • flowingliquid
  • liquid
  • torchlike (seems to be similar to sprite)

I don't think adding all those drawtypes to luaentities is necessary but some of them might make sense

I suggest adding:
  • plantlike
  • raillike
  • signlike
  • allfaces (drawing textures to inner side too)
  • irregular_cube (using collision box as surfaces to place texture at)

I know at least last one might be a little bit controversial so please add your oppinion. You may have a look at what last one would enable here: http://c55.me/minetest/forum/viewtopic.php?id=623

PostPosted: Sat Feb 04, 2012 16:46
by neko259
++

PostPosted: Sat Feb 04, 2012 16:55
by Jeija
+1
The irregular_cube feature is certainly useful!
What would you need the plantlike drawtype for?

I certanly want to see your doors supported by default!

PostPosted: Sat Feb 04, 2012 17:19
by sapier
there's still collision handling missing for the doors so irregular cube would be just first step.

plantlike style is usefull eg in farming mod as those plants grow on their own they are entities by now they are sprites most time this doesn't make much difference but if you're standing right on top of them it isn't that good :-)

PostPosted: Sat Feb 04, 2012 20:41
by sfan5
sapier wrote:By now luaentities have only limited support for drawtypes:
  • cube
  • sprite

while nodes have:
  • normal (equivalent to cube)
  • plantlike
  • allfaces_optional
  • glasslike
  • fencelike
  • raillike
  • signlike
  • flowingliquid
  • liquid
  • torchlike (seems to be similar to sprite)

I don't think adding all those drawtypes to luaentities is necessary but some of them might make sense

I suggest adding:
  • plantlike
  • raillike
  • signlike
  • allfaces (drawing textures to inner side too)
  • irregular_cube (using collision box as surfaces to place texture at)

I know at least last one might be a little bit controversial so please add your oppinion. You may have a look at what last one would enable here: http://c55.me/minetest/forum/viewtopic.php?id=623

+5 for all
+7.5 for the irregular_cube <- it could be very usefuel

PostPosted: Sat Feb 04, 2012 20:49
by dannydark
+1 ^_^

PostPosted: Sun Feb 05, 2012 00:18
by Calinou
+1.