Author Topic: TinyPTC Ext  (Read 25714 times)

0 Members and 1 Guest are viewing this topic.

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 612
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: TinyPTC Ext
« Reply #60 on: July 17, 2009 »
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

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: TinyPTC Ext
« Reply #61 on: July 18, 2009 »
Unfortunately not, it uses DirectX to do the drawing.

Jim
Challenge Trophies Won:

Offline Moroboshisan

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 443
  • Karma: 18
  • C=64
    • View Profile
Re: TinyPTC Ext
« Reply #62 on: July 18, 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

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...

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: TinyPTC Ext
« Reply #63 on: July 18, 2009 »
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:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: TinyPTC Ext
« Reply #64 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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: TinyPTC Ext
« Reply #65 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:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 612
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: TinyPTC Ext
« Reply #66 on: July 18, 2009 »
Thanks for your answers mates !

Quote
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.

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

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: TinyPTC Ext
« Reply #67 on: July 18, 2009 »
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:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 612
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: TinyPTC Ext
« Reply #68 on: July 18, 2009 »
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

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: TinyPTC Ext
« Reply #69 on: July 18, 2009 »
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:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: TinyPTC Ext
« Reply #70 on: July 18, 2009 »
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.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: TinyPTC Ext
« Reply #71 on: July 18, 2009 »
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:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2721
  • Karma: 485
    • View Profile
    • http://www.rbraz.com/
Re: TinyPTC Ext
« Reply #72 on: July 18, 2009 »
@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.

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 :)

... when rabz/jims framework used opengl ...
Who is this guy called rabz...  :-\


 
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: TinyPTC Ext
« Reply #73 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:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 612
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: TinyPTC Ext
« Reply #74 on: July 19, 2009 »
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

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2721
  • Karma: 485
    • View Profile
    • http://www.rbraz.com/
Re: TinyPTC Ext
« Reply #75 on: June 12, 2011 »
Updated
- Removed an "unwanted feature" (=bug :)) on windowed mode.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: TinyPTC Ext
« Reply #76 on: June 12, 2011 »
Thanks for continuing to support your great lib!
Shockwave ^ Codigos
Challenge Trophies Won: