Using Pipeline lib with OOP structures
Blitz3D Forums/Blitz3D Programming/Using Pipeline lib with OOP structures
| ||
Okay I'm fairly new to the Pipeline extension library, and I'm trying to get the library to work with an OOP type of structure, using Types and re-usable functions to create entities like Players and Enemies. The 1 example you get for the library is fine for that kind of structure i.e. very basic but it seems very sketchy when used within functions, here is what I'd like the library to work with: Type Player Field name$ Field entity Field mesh$ Field pitch#,yaw#,pitch_speed#,yaw_speed#,roll#,thrust# End Type player1.Player=createPlayer("Bob","\samples\meshes\ship.b3d") While Not KeyHit(1) For p.Player = Each Player updatePlayer(p) Next UpdateWorld() RenderWorld() Flip Wend ;---------------------------------------------------- Function createPlayer.Player(name$,mesh$) p.Player = New Player p\name$ = name$ mesh$ = LoadAnimMesh(mesh$) p\entity = mesh$ Return p End Function ;---------------------------------------------------- Function updatePlayer(p.Player) Keys to update player position End Function ;---------------------------------------------------- This is the type of structure I'd like to get the extensions libary to work with, any help would be much appreciated. |
| ||
Just to clarify, this is the library calls which need to be implimented. Taken from the SimpleTest.bb which comes with the Pipeline library. ; Initialize all B3d Extensions in hierarchy extModel.EXT_Entity = EXT_InitEntity(model) ; Activate the Environment in this EXT_Entity EXT_ActivateEnvironment(extModel) While Not KeyHit(1) ; Update B3d Extensions EXT_UpdateEntity(extModel) EXT_UpdateEnvironment() This will view a b3d file you've exported, including lights and animation frames etc. etc. |
| ||
What Pipeline library? |
| ||
This, I think: http://www.onigirl.com/pipeline/ |
| ||
It's a very nice potential library which isn't supported enough, there really isn't enough examples or documentation out there for it. I simply cant believe that noone has written any examples for it on here, it's almost a MUST for making games?!?! I figured the problem out above if anyone would like to know. |
| ||
Verfum, It would help if we knew what you were talking about specifically, do you mean the B3D Pipeline for 3D studio Max? Or something else? Please be more specific. IPete2. |