Author Topic: Pumpkin + Scroller source  (Read 7322 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Pumpkin + Scroller source
« on: March 31, 2007 »
Here's the Visual Studio 2005 source code for all my demos so far, the pumpkins, the blocks and a few other bits and bobs.

I'm granting a license to any DBF member to use this source code for non-commercial purposes.  Send me a PM for the password for the zip file.

Once you've built it, you can use Tab to go through the demos, the Julia one doesn't do anything.  The original idea for the code was to be able to generate any object from the primitives in prim.cpp.  But as time went on, it got added to a lot and now it does a lot of things, including loading 3ds, rwx, obj and milkshape files.  It's based on OpenGL and C++.  It might take a little while to start up, it allocates A LOT of memory.

Have fun!

Jim
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Pumpkin + Scroller source
« Reply #1 on: April 01, 2007 »
Really cool stuff jim!!!!!

thanks for sharing mate.
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: Pumpkin + Scroller source
« Reply #2 on: April 01, 2007 »
thanx for sharing  :cheers:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Pumpkin + Scroller source
« Reply #3 on: April 01, 2007 »
Thanks for sharing!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: Pumpkin + Scroller source
« Reply #4 on: April 06, 2007 »
about AHX, I see a difference between this source and that one : AHX.h, windows.h but AHXLIB.lib

how you obtain a lib from Windows.cpp and AHX.cpp ?
because I have : "fatal error LNK1196: invalid or corrupt import object: unknown version"

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Pumpkin + Scroller source
« Reply #5 on: April 07, 2007 »
Which source did you get bbear?  The one in the first post, or the one that I'd made some fixes to further down?  In any event, the code isn't very much different, I just fixed a few bugs.
AHXLIB.lib is a static library.  If you're using Visual Studio, it's one of the options you can set when you create a project.  If you grab the source that I've made fixes to, it includes the whole VC2005 project to build it.
Are you using and older version of VS, or do you have the Express and Pro versions installed at the same time?

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: Pumpkin + Scroller source
« Reply #6 on: April 10, 2007 »
I don't know which version I have downloaded (I think it's the last, with the VC2005 project.
I use VC6

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Pumpkin + Scroller source
« Reply #7 on: April 10, 2007 »
You'll need to rebuild AHXLIB.lib from the source using VC6 :-\.  Better yet, get a hold of Visual Studio Express 2005.  It's a lot of downloading though.  The links are at the top of this forum.

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: Pumpkin + Scroller source
« Reply #8 on: April 16, 2007 »
have you an executable version ? I can't compil with vc6 (too many errors)

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Pumpkin + Scroller source
« Reply #9 on: April 16, 2007 »
OK.  This is just the exe.  You need to put it in the folder with all the source/bmp/bin files for it to work.

It'll never build with VC6.  It was written using all the latest stuff for VS2005.  Do you have a decent internet connection?  If so, you can get VS2005 Express for free by following the tutorial pinned to the top of this page.

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: Pumpkin + Scroller source
« Reply #10 on: April 17, 2007 »
I have a little problem for now : only windows xp sp1, and I can't install Sp2 because of HD free space...
In some months, I'll be able to install sp2 and .net 2.0... wait & see  ::)

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Pumpkin + Scroller source
« Reply #11 on: April 17, 2007 »
Delete VC6?  It'll all port up and build OK with a few minor tweaks.

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: Pumpkin + Scroller source
« Reply #12 on: April 17, 2007 »
it's little bit more difficult  ::). I have space for vs2005 and/or vc6 (only 240 Mb) because they are on a second big drive but not for sp2 upgrade and .net 2.0 because use C on an old HD too small and need 500 Mb...
(yes, I know  :-[ ...but I'm going to change the main hd and the second one for a Big Big one, 2 in 1)