• Welcome to Dark Bit Factory & Gravity.
 

TinyPTC Ext

Started by Rbz, February 16, 2007

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hezad

Hum ... Sorry if the question has already been asked before but is there a way to use Tiny PTC under linux ? I see it needs windows.bi :S
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Jim

Unfortunately not, it uses DirectX to do the drawing.

Jim
Challenge Trophies Won:

Moroboshisan

Quote from: Jim on July 17, 2009
Unfortunately not, it uses DirectX to do the drawing.

noob question [remember that i'm just starting to learn some basic coding... I hope so]: TinyPTC uses DX? I thought [haven't inspected the code yet] it uses OpenGL....

BTW

Quote from: Hezad on July 17, 2009
is there a way to use Tiny PTC under linux ? I see it needs windows.bi :S

This is the reason why I personally really love software render... you do not rely upon anything, just a bunch of algorithm you can recompile for whatever platform you need to run on! The drawback is lot of CPU time and the need to code basic painting routines from scratch.... obviously you do not need dual core GPUs with 1GB of Ram...

Jim

We used to use OpenGL, but we had trouble with compatibility so rbz made it use DirectDraw instead.
I can fish out the old code, but it's still dependent on Windows initialisation.  Easy enough to fix if it moved to use glut.

Effectively tiny_ptc_ext is there exactly so we can do pixel bashing/software rendering in FB without worrying about DirectX, OpenGL or any of the other stuff.  It provides a framebuffer and a way of moving it up to the screen.

Jim
Challenge Trophies Won:

Clyde

btw, please use this version of tinyptc_ext.bi if you are planning on using bass for music.
as the other download for tinyptc_ext++.bi ( exactly the same version as in here ) and comes with ufmod which will clash with bass definitions & variables etc. as i have discovered.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

Quote from: Clyde on July 18, 2009
btw, please use this version of tinyptc_ext.bi if you are planning on using bass for music.
as the other download for tinyptc_ext++.bi ( exactly the same version as in here ) and comes with ufmod which will clash with bass definitions & variables etc. as i have discovered.

If you are following my tutorials, don't take this advice for now, this is something you can will move on to later.
Shockwave ^ Codigos
Challenge Trophies Won:

Hezad

Thanks for your answers mates !

QuoteEffectively tiny_ptc_ext is there exactly so we can do pixel bashing/software rendering in FB without worrying about DirectX, OpenGL or any of the other stuff.  It provides a framebuffer and a way of moving it up to the screen.

So I could use tiny_ptc_ext on linux ? The reason I want to use it is that a lot of stuff here is coded with tiny ptc (or with tiny_ ptc_ext ?) and since I'm on linux for some time now, I'd like to be able to run all those nice snippets/demos ;)
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Shockwave

Hezad, since your software rendered stuff is so lovely I'd love to see them re-coded using tinyptc_ext, just for the speed boost :)
Shockwave ^ Codigos
Challenge Trophies Won:

Hezad

Well I'll take a look at tiny_ptc_ext then  ;D Some speed improvement is always good  :D
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Jim

Again, this version of tinyptc won't work on Linux, since it uses DirectX. It provides a framebuffer in a very portable way so that FB demo writers don't have to care about the underlying hardware/drivers, but it means that you would need a Linux-based version of it.

Jim
Challenge Trophies Won:

TinDragon

I dont know if under FB in linux you have access to opengl commands, if you do you could emulate the way tinyptc works, I did this in blitzmax back when rabz/jims framework used opengl I made a version and used glDrawPixels command to copy the framebuffer from memory to the backbuffer. You would need some way to open the opengl window/screen but if FB offers opengl in linux it will have some way to do this.

Clyde

I wouldnt be at all surprised if there exists all ready a linux counterpart to tinyptc. Maybe the artist formerlly known as rbraz ( rbz ) knows any more.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Rbz

@Hezad: as Jim said, this fb library is windows compatible only.
You can find here http://www.dbfinteractive.com/forum/index.php/topic,672.0.html one version using opengl, maybe you can try to recode it to linux.

Quote from: Clyde on July 18, 2009
btw, please use this version of tinyptc_ext.bi if you are planning on using bass for music.
as the other download for tinyptc_ext++.bi ( exactly the same version as in here ) and comes with ufmod which will clash with bass definitions & variables etc. as i have discovered.
I wonder why one would use ufmod + bass sound system in the same app  :-\
Anyway it's proved here http://www.dbfinteractive.com/forum/index.php/topic,3806.msg56347.html#msg56347 that it can work just fine :)

Quote from: TinDragon on July 18, 2009
... when rabz/jims framework used opengl ...
Who is this guy called rabz...  :-\


Challenge Trophies Won:

Shockwave

Quote from: rbz on July 18, 2009

I wonder why one would use ufmod + bass sound system in the same app  :-\


I must admit I am struggling with that one too.
The only reason I could see to use bass as opposed to Ufmod is if you were using an incompatible format (an mp3 for instance), ufmod is much smaller and really excellent for tracker stuff.
Shockwave ^ Codigos
Challenge Trophies Won:

Hezad

Thanks for the link ! I'll check that, a linux conversion would be cool I guess :) Otherwise, I could directly use open GL too, no ? AFAIK, using open gl for 2D rendering is just a matter of plotting pixels on a texture and putting this texture on screen.

(oh.. And while I'm writing this, I'm remembering my computer doesn't have any graphics acceleration since my onboard graphic chipset is not/badly handled by linux .. So Open GL or Tiny_ptc-using-open-GL won't be of any use here  :-\)
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Rbz

Updated
- Removed an "unwanted feature" (=bug :)) on windowed mode.
Challenge Trophies Won:

Shockwave

Thanks for continuing to support your great lib!
Shockwave ^ Codigos
Challenge Trophies Won: