Draw types for luaenties

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

Draw types for luaenties

by sapier » Sat Feb 04, 2012 16:34

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
Last edited by sapier on Sat Feb 04, 2012 16:55, edited 1 time in total.
DON'T mention coding style!
(c) sapier all rights reserved
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Sat Feb 04, 2012 16:46

++
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Sat Feb 04, 2012 16:55

+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!
Last edited by Jeija on Sat Feb 04, 2012 16:55, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Sat Feb 04, 2012 17:19

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 :-)
DON'T mention coding style!
(c) sapier all rights reserved
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sat Feb 04, 2012 20:41

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
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Sat Feb 04, 2012 20:49

+1 ^_^
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sun Feb 05, 2012 00:18

+1.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 1 guest