How to create a custom slider and knob controls?

Blitz3D Forums/Blitz3D Programming/How to create a custom slider and knob controls?

dman(Posted 2010) [#1]
how can I create a slider and knob control using sprites, rotating and sliding. using x and y ?


I have an idea, but is there way to have it function proficiently and smooth.


Midimaster(Posted 2010) [#2]
You could add the knob and sliders as normal entity with parent "camera". Move them 0,0,-2 to get them in front. If you now move/turn the camera, they will always be in front of the camera. As normal entities you can move/rotate them free.


Kryzon(Posted 2010) [#3]
Yes there is! get one of the various 2D-in-3D libraries around here for Blitz3D, such as Draw3D, Sprite Control (freewares); FastImage, nSprite II, SpriteCandy (commercial).

They provide easy ways for you to utilize pixel-perfect sprites that can be controlled just like Blitz3D images, but with the benefit of hardware-accelerated blend modes, rotation and scale (and rendering, of course).

Next thing you do is just use the same logic you'd with 2D images.