Using Pipeline lib with OOP structures

Blitz3D Forums/Blitz3D Programming/Using Pipeline lib with OOP structures

verfum(Posted 2007) [#1]
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.


verfum(Posted 2007) [#2]
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.


Stevie G(Posted 2007) [#3]
What Pipeline library?


Synchronist(Posted 2007) [#4]
This, I think: http://www.onigirl.com/pipeline/


verfum(Posted 2007) [#5]
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.


IPete2(Posted 2007) [#6]
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.