Author Topic: Caballero's drawer  (Read 2664 times)

daydreamer

  • Member
  • ****
  • Posts: 548
  • reach for the stars
Re: Caballero's drawer
« Reply #75 on: July 31, 2018, 03:11:59 AM »
nice work caballero :t
Quote from Flashdance
Nick  :  When you give up your dream, you die.
*wears a flameproof asbestos suit*

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Caballero's drawer
« Reply #76 on: August 03, 2018, 03:21:31 AM »
This bulls**t is taking me talking to myself for a while, you see, it's a work in progress. No acelerated graphic card used, no opengl or directx, only gdi. If anyone want to test it and tell me, here it goes:

- You must unzip the three files in the same folder to execute it.
- Turn on the speakers and loud them, it worths.
- Some nice toys as lambert and environment mapping, etc.
- The best is that you can move freely the camera:
  * E: move forward +Z
  * D: move backward -Z
  * A: move up +Y
  * Z: move down -Y
  * Q: move to the left -X
  * W: move to the right +X
  * X: rotate to the left in the XZ plane
  * C: rotate to the right in the XZ plane
  * R: rotate up in the plane YZ
  * F: rotate down in the plane YZ
  * T: rotate to the left in the plane XY
  * Y: rotate to the right in the plane XY
 
Known bugs and todo list:
- I have to incorporate also this two files to the resource.
+ I have to incorporate the mouse and the cursor keys to move the camera (already done).
+ It increases the memory usage continuously, I have to fix it. Take care of it, nothing serious though, but don't take the program running for hours Already fixed :biggrin:.

Edited: In this version I have incorporated the mouse and the cursor keys. Same as the previous one, but with the mouse you can rotate left/right/up/down. With the left/right mouse button it will rotate left/right. Use the cursor buttons to move left/right/up/down. I have fixed the memory increasing too.
« Last Edit: August 04, 2018, 08:09:37 PM by caballero »
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

HSE

  • Member
  • ****
  • Posts: 829
  • <AMD>< 7-32>
Re: Caballero's drawer
« Reply #77 on: August 03, 2018, 05:11:30 AM »
Very interesting  :t

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Caballero's drawer
« Reply #78 on: August 03, 2018, 10:07:19 AM »
Nice, I like the colors of the Spherical Environment Mapping object very much.  8)
Creative coders use backward thinking techniques as a strategy.

daydreamer

  • Member
  • ****
  • Posts: 548
  • reach for the stars
Re: Caballero's drawer
« Reply #79 on: August 04, 2018, 02:54:36 AM »
looks great,nice Music
Quote from Flashdance
Nick  :  When you give up your dream, you die.
*wears a flameproof asbestos suit*

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Caballero's drawer
« Reply #80 on: August 04, 2018, 06:17:01 PM »
Here is the version with the built-in mouse. Same as the previous one, but with the mouse you can rotate left/right/up/down. With the left/right mouse button it will rotate left/right. Use the cursor buttons to move left/right/up/down.

I have fixed the continuously memory increasing.
It will move according to how fast the mouse moves, so don't be rough. :biggrin:

I left it in the first post so as not to occupy unnecessary space.
« Last Edit: August 04, 2018, 08:10:46 PM by caballero »
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Caballero's drawer
« Reply #81 on: September 30, 2018, 09:41:48 PM »
Another proof with stars
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

HSE

  • Member
  • ****
  • Posts: 829
  • <AMD>< 7-32>
Re: Caballero's drawer
« Reply #82 on: October 01, 2018, 07:15:46 AM »
Nice  :t

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Caballero's drawer
« Reply #83 on: October 01, 2018, 07:28:19 AM »
Cool effect.
Which random routine did you use?
Creative coders use backward thinking techniques as a strategy.

FORTRANS

  • Member
  • *****
  • Posts: 1025
Re: Caballero's drawer
« Reply #84 on: October 02, 2018, 01:06:54 AM »
Hi,

   It ran on Windows 2000.  It ran faster on Windows XP.  The
near-field stars had some jitter or rough movement.  Overall
very nice though.

   It did not run on Windows 98, it raised an exception.

Regards,

Steve N.

caballero

  • Member
  • *****
  • Posts: 1089
    • abre ojos ensamblador
Re: Caballero's drawer
« Reply #85 on: October 02, 2018, 04:26:16 AM »
Hello

@Marinus. The random function is the c standard, but only used at the definition of the cube of stars. The motion is just rotating and translating the objects.

@Steve. Thank you for testing. I think that the jitter is due to the speed to the rotation of the stars, more evident as closer to the camera, unless I am using at some point integers instead of floats. I wonder if the error raised in the W98 is due to the mod player. I attach a version without this player, if you could test it again in W98 and tell me how it worked. Thank you.
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

FORTRANS

  • Member
  • *****
  • Posts: 1025
Re: Caballero's drawer
« Reply #86 on: October 02, 2018, 05:19:21 AM »
Hi,

   Yes, that one runs on Win98.  Runs slower, obviously, but it
seemed smoother as well.  I got to notice some larger stars
that went by too quickly on the faster systems.  On exit it
throws an error.

Code: [Select]
This program has performed an illegal operation
and will be shut down.

ESTRELLA caused a stack fault in KERNEL32.DLL at
015f:bff742a3

{Corresponds to CS:EIP}

SS=0167
ESP=0094207c

HTH,

Steve N.

AlphonseG

  • Regular Member
  • *
  • Posts: 1
Re: Caballero's drawer
« Reply #87 on: October 20, 2018, 10:08:33 PM »
Is Win98 the oldest Windows version it can run on btw?