Basic programming language :: thinBasic Community
September 08, 2010, 06:12:48 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: RobotDuel - Game for 2 players: http://community.thinbasic.com/index.php?topic=305.0
 
  Home Help thinGaming Search Calendar Gallery Articles Donations Tags Media Center Login Register   *

thinBasic 1.8.0.0 is out !  :: See this post ( last update: 2010.03.07 ! )  :: Latest beta version: thinBasic beta 1.8.6.0 ( last update: 2010.08.02 ! )
Main menu
Members
Total Members: 526
Latest: jnash67
Stats
Total Posts: 26705
Total Topics: 3545
Online Today: 26
Online Ever: 121
(August 16, 2009, 07:08:32 am)
Users Online
Users: 2
Guests: 10
Total: 12
1 Spider, 10 Guests, 2 Users
Eros Olmi, jnash67
Google spider
Subject Statistics
Topic: External MD2 support for TBGL Replies: 5 posts
Read 1518 times 0 Members and 1 Guest are viewing this topic.
Pages: 1 
  Add bookmark  |  Print  
Author Topic: External MD2 support for TBGL  (Read 1518 times)
0 Members and 1 Guest are viewing this topic.
Petr Schreiber
Global Moderator
Hero Member
*****

Karma: 77
Offline

Posts: 5088


TBGL developer


WWW
« on: January 01, 2009, 09:13:58 am »

Dear friends!,

welcome to new year! Because learning from history is often useful, I bring some granny-tech Smile

I think at least some of gaming patriarchs remember era of Quake 2 engine - Quake 2, Anachronox, Kingpin...

These games used MD2 animation system, or its derivation.
During the last few days I decided to attempt to work on system handling classic MD2 animated models.

As I realize MD2 is historical technology, I decided to not include it as part of TBGL, but make separate DLL - those who want to try it can pick it separately and use with TBGL.

Good news for someone could be that I decided to release source code of MD2Plus, as I named the library, so everyone can get scared by coding done under influence of Xmas cookies overdose Smile and modify it. Library is written in PowerBASIC for Windows, v9.

All functions are documented via PDF manual, and I preparied few elemental examples to get you started.

I tried to keep it simple, so you can load, draw and delete the MD2's. You can also set active animation loop and iterate through the frames both back and forth.

Hope you will like it, and I would be even happier to see some game using this library in the future Wink


Petr

There were typos in the manual, I uploaded new version
Attached files
* MD2Plus_ThinBasic.zip (903.85 KB - downloaded 163 times.)
« Last Edit: January 01, 2009, 10:47:14 pm by Petr Schreiber » Logged

psch.thinbasic.com / forum
Information about ThinBASIC 3D programming and download of free TBGL tools.

WinXP Home SP3 - Sempron 3400+ @ 1.8GHz - 1Gb RAM @ 533 - NVIDIA GeForce 9500GT 512MB / NVIDIA GeForce 6200 TC
Michael Hartlef
Creator of TBDI, TBAI and TBEM
Global Moderator
Hero Member
*****

Karma: 42
Offline

Gender: Male
Posts: 2955



« Reply #1 on: January 01, 2009, 12:05:12 pm »

thanks Petr for providing this. I don't own PB9 but for sure it will be an interesting study of your sources.

Michael
Logged
Petr Schreiber
Global Moderator
Hero Member
*****

Karma: 77
Offline

Posts: 5088


TBGL developer


WWW
« Reply #2 on: January 01, 2009, 01:36:19 pm »

Mike,

I use new features of PB9 mainly for the data storage and management of common model data. If it would be problem for you, I can rewrite it to something with custom memory allocation. It would loose a bit of clarity, but would work.

Sources are not exactly state of the art, but I tried to comment frequently Smile


Petr
Logged

psch.thinbasic.com / forum
Information about ThinBASIC 3D programming and download of free TBGL tools.

WinXP Home SP3 - Sempron 3400+ @ 1.8GHz - 1Gb RAM @ 533 - NVIDIA GeForce 9500GT 512MB / NVIDIA GeForce 6200 TC
zlatkoAB
Jr. Member
**

Karma: 0
Offline

Gender: Male
Posts: 172


Can I play with madness?


« Reply #3 on: January 01, 2009, 01:48:47 pm »

Hi Petr...
This MD2  .dll looks great Smile
Thanks for sharing source code ,very interesting.
And all best for New Year... Wink

Zlatko

And also all best for you Mike... Smile
Logged

Eros Olmi
Administrator
Hero Member
*****

Karma: 92
Online

Gender: Male
Posts: 6314


thinBasic co-author


WWW
« Reply #4 on: January 01, 2009, 02:18:34 pm »

Thanks a lot Petr. Very generous.
It is a great piece of code that can be used as a base for a community project.
Maybe other PBrs will be interested in your code  Wink

I have to say that thinBasic source code still have to take advantages of the new PB9 features like CLASSes.
But I will recover this gap once thinBasic version 2.x will be in production.

Ciao
Eros

Logged

www.thinbasic.com | community.thinbasic.compsch.thinbasic.com
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB
Michael Hartlef
Creator of TBDI, TBAI and TBEM
Global Moderator
Hero Member
*****

Karma: 42
Offline

Gender: Male
Posts: 2955



« Reply #5 on: January 01, 2009, 05:17:03 pm »

And also all best for you Mike... Smile

Thanks Zlatko, you too!

@Petr, no need to convert this for me.
Logged
Tags: MD2 TBGL 
Pages: 1 
  Add bookmark  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!


Google visited last this page July 17, 2010, 06:57:51 pm