SyntaxBomb - Indie Coders

General Category => Worklogs => Topic started by: Yue on December 26, 2017, 08:45:52 PM

Title: Return to Blitz3D / windows 10
Post by: Yue on December 26, 2017, 08:45:52 PM
(http://i65.tinypic.com/23icbvo.png) :o

With the result that Leadwerks has no current vehicle system support, I have returned to the old Blitz3D, and only created a prototype vehicle for a simple game.

And the truth is impressive to me that Blitz3d still worked.
Title: Re: Return to Blitz3D / windows 10
Post by: RemiD on December 26, 2017, 10:11:27 PM
@Yue>>we are the "last ones standing" and not afraid of the future !
(http://www.hostingpics.net/thumbs/79/50/82/mini_795082dukeemoticon.png)
As long as the programs made with Blitz3d work well on widespread versions of Windows, i will keep using it !
Creating realistic/high details graphics takes too much time/energy anyway, and Blitz3d is perfect to prototype/create simple games. So hey why not.
Title: Re: Return to Blitz3D / windows 10
Post by: Steve Elliott on December 26, 2017, 10:22:47 PM
Quote
Creating realistic/high details graphics takes too much time/energy anyway

Now that is true...It's all about the game play in my eyes anyway.   :D
Title: Re: Return to Blitz3D / windows 10
Post by: RemiD on December 26, 2017, 10:30:42 PM
gameplay is important, of course, but graphics and sounds are important too ! But nice graphics does not necessarily mean high details 3d shapes with photorealistic textures and motion captured animations...
Title: Re: Return to Blitz3D / windows 10
Post by: Steve Elliott on December 26, 2017, 10:36:58 PM
Quote
But nice graphics does not necessarily mean high details 3d shapes with photorealistic textures and motion captured animations...

Yes, totally agree.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on December 27, 2017, 01:46:13 AM
One of the things I learned the hard way, is that a video game doesn't have to be cutting-edge graphics, where the only rule is that it's fun.




Opps! My daughter's favorite artist's audio tapped me.
Lindsey Stirling



Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on December 27, 2017, 09:52:03 PM
Nice one!
Title: Re: Return to Blitz3D / windows 10
Post by: GaborD on December 27, 2017, 09:56:05 PM
Nice stuff, Yue!
Will be fun to see what you come up with in great old Blitz.
Title: Re: Return to Blitz3D / windows 10
Post by: RemiD on December 28, 2017, 06:37:25 AM
With such physics, you could try to create a game similar to vigilante8 / twisted metal ;D
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 02, 2018, 10:41:41 AM
Interestingly enough, when investigating Bullet Physics on AGK I found the software for usage in Python and C++/Unity) is freely available on GitHub ( https://github.com/bulletphysics/bullet3/releases (https://github.com/bulletphysics/bullet3/releases) ) and is apparently created by a Dutch guy now working for the Google Brainteam which is/was also closely tied to Boston Dynamics. You know: from our lovely, friendly, little backflipping dude(soon to be a real life Terminator  :) ) 'Atlas The Robot'.



Sing along: - It's a small world after all, it's a small world after all, etc. - lol
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 02, 2018, 06:27:12 PM
Robots! :o

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 12, 2018, 02:37:32 AM
(http://i68.tinypic.com/2aj3u44.png)

Continued on this, I've switched from the physics bullet system to newton. This is because tires are more realistic with the newton physics system.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 13, 2018, 01:35:19 AM
 :)


What pleases me about Newton's physics system is that tire crashes are more accurate compared to the bullet system when rim crashes with lightning strikes.  :)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 13, 2018, 03:24:03 AM
 ;D

(http://i65.tinypic.com/e9ix39.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 14, 2018, 12:39:54 AM
Nice Newton!! :)

Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 14, 2018, 11:06:31 AM
Awesome looking!
Are you taking on the Mars racing challenge again?

If so, you can call it "The Ultra Epic Tesla Mars Racing Game" :)  and ask Elon Musk to pay you a few bucks to sponsor your endeavors as you are a poor student and it's a commercial for his company.

Free 3d models(blender format, may need to convert):
https://free3d.com/3d-model/tesla-model-3-2018-with-charger-27881.html (https://free3d.com/3d-model/tesla-model-3-2018-with-charger-27881.html)


Just an idea, dunno if he would, but you never know. He once started as a game programmer too and might like the idea as it's his dream of going to Mars and also plans to send his Tesla into Mars orbit this month.
See:
https://www.theverge.com/2017/12/22/16811944/elon-musk-spacex-tesla-roadster-mars-falcon-heavy (https://www.theverge.com/2017/12/22/16811944/elon-musk-spacex-tesla-roadster-mars-falcon-heavy)
https://www.kennedyspacecenter.com/launches-and-events/events-calendar/2018/january/rocket-launch-spacex-falcon-heavy (https://www.kennedyspacecenter.com/launches-and-events/events-calendar/2018/january/rocket-launch-spacex-falcon-heavy)

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 15, 2018, 12:14:28 AM
 :o :o

This is incredible, I think it's a dejavu, I'm doing exactly what you say, I think you practice witchcraft.    :)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 15, 2018, 12:36:34 AM
Test ChekPoint for game.




Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 15, 2018, 06:02:41 PM
Quote
This is incredible, I think it's a dejavu, I'm doing exactly what you say, I think you practice witchcraft.    :)

I try not to: I heard it's eval.   :D

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 18, 2018, 12:48:34 AM
Timer timekeeping  :)

(http://i66.tinypic.com/2a8p54k.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 18, 2018, 01:48:28 AM
(http://i63.tinypic.com/30hpgn5.png)  :-\

I can't find a textured model.
Title: Re: Return to Blitz3D / windows 10
Post by: Naughty Alien on January 18, 2018, 02:35:16 AM
..oh i thought you moved to leadwerk for this..
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 18, 2018, 02:39:09 AM
..oh i thought you moved to leadwerk for this..

Unfortunately, the current version of leadwerks does not support vehicles.  :'(
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 19, 2018, 01:21:39 AM
(http://i65.tinypic.com/2mh7yw4.png) :)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 03:02:14 AM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 03:20:24 AM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 05:11:36 AM
(https://pbs.twimg.com/media/DT9amKBXkAAxNUG.jpg:large)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 05:36:32 AM
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 20, 2018, 07:54:56 AM
Hehehe, pretty brutal. Now imagine that being an opponent car driver.   :)

Looking good so far.

I've checked and is hard to find a (free) Tesla Roadster model.
Guess that would mean making one yourself?
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 02:38:44 PM
I could try to make the model, or in such a case the textures for the other, however I think it is a very time-consuming task, and having to be aware of everything I probably deviated from the objective.  That's why I'm not digging deeper into menus, things like that, the goal is centered in the game.

So I will use the model created by Piotr Kupsc

https://www.artstation.com/piotrkupsc



(https://goo.gl/7EtkZq)

(https://goo.gl/kSL2Fy)

Initially it will be a kind of rally, reaching certain control points with time.

I've really learned a lot of things, well not many, but I still don't know how to make a video game.  :-\




Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 03:50:02 PM
Chassis in place.  :D
(http://i66.tinypic.com/rsc2ki.jpg)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 05:51:44 PM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 20, 2018, 08:34:45 PM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 22, 2018, 02:17:53 PM
(http://i65.tinypic.com/sqqrud.png)
(http://i68.tinypic.com/4vs5d3.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Conjured Entertainment on January 22, 2018, 03:08:50 PM
When looking at the screenshot of the box car, I was not impressed.

However, when looking at the last couple of videos, I am impressed.

Looking great so far.

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 22, 2018, 03:30:56 PM
Other video. :)

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 22, 2018, 03:57:27 PM
The last one didn't look good.

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 22, 2018, 05:13:37 PM
Tools Terrain.  ;D

(http://i63.tinypic.com/29bd7qp.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 22, 2018, 06:17:42 PM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 22, 2018, 07:39:59 PM
Terrain simple.
(http://i66.tinypic.com/6z6d0l.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 23, 2018, 12:20:44 AM
(http://i67.tinypic.com/2nlh2ll.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 23, 2018, 03:08:58 AM
I have managed to implement a terrain correctly, the problem that took a lot of time to solve is that the car was slipping when stopped on a hillside. So as always proof and error, I have managed to find a solution to this.

(http://i63.tinypic.com/e5juvq.png)

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 24, 2018, 11:02:39 PM
Test Table Score.

(http://i65.tinypic.com/2q2g4yg.jpg)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 25, 2018, 02:28:40 AM
(http://i67.tinypic.com/6sru6d.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 25, 2018, 10:28:57 AM
Looking good, very good! If you put some random rocks on terrain then would get more dangerous and exciting.


Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 25, 2018, 05:29:24 PM
(http://i67.tinypic.com/bey82x.png)  :-X
Title: Re: Return to Blitz3D / windows 10
Post by: 3DzForMe on January 25, 2018, 07:03:59 PM
Sweet image Yue ;)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 26, 2018, 02:41:50 AM
working on the player outside the vehicle, first person.
(http://i64.tinypic.com/2ldefk3.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 27, 2018, 10:14:31 PM
(http://i68.tinypic.com/zlyjnm.png)  ;D

Once the character is finished in the first person, you can get in and out of the car with the E key.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 27, 2018, 10:58:55 PM
Test Character Controller.

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 28, 2018, 12:49:23 AM
Ilumination finish.  :P

(http://i68.tinypic.com/2r6mud2.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 28, 2018, 01:43:26 AM
(http://i67.tinypic.com/zoaw52.png)  :-X

(http://i63.tinypic.com/8z48w9.png) :-X

The best thing that can happen is to be sued. :D

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 28, 2018, 03:45:50 AM
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 28, 2018, 11:26:40 AM
Cool! The physics and visuals seem pretty good for Blitz3d.

What happens if it drives over a rock? Will it flip over?
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 29, 2018, 01:53:04 PM


The rocks are in the work plan, if they are small rocks that do not exceed the mass of the tires will pass over them without problem, if they are large rocks depending on the speed of the car may turn the car.

Right now I'm prepping the system for particles, meteors, storms, hurricanes.  :D
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 29, 2018, 05:38:56 PM
Cool!  8)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 29, 2018, 07:44:44 PM
Test system particle.
(http://i63.tinypic.com/27xqt90.jpg)
Title: Re: Return to Blitz3D / windows 10
Post by: GaborD on January 29, 2018, 07:52:45 PM
Looks really great!
Title: Re: Return to Blitz3D / windows 10
Post by: Steve Elliott on January 29, 2018, 07:56:12 PM
Good stuff, keep working towards that game.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 29, 2018, 08:13:21 PM
Test particle system for wheels.

(http://i66.tinypic.com/zk04r4.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 29, 2018, 08:30:33 PM
The experience of developing a game.

I'm not a programmer, far from it, I've learned some things, but I'm very far from doing something spectacular, in this case at the moment everything is profit, I think I've improved a lot since 2007, and my code is much more structured, easier, more comfortable to maintain and at the moment it hasn't gotten out of hand enough to abandon it.

This is just a hobby, always something to learn, always something new to improve and possibly this year if I make a game, I see it very evident, although I don't sing victory yet, and then the question is. Why Blitz, simple because it still works and the push was that leadwerks has no support for vehicles, and AGK, it is very raw for me, however Bltiz3D is usually a world more and more pleasant, more quiet and since I continued to run on Windows, I will not see any inconvenience.

About the game, all my learning prototypes have had to do with Mars or another element of a prototype called "Pawn", menus, tests etc., I don't know how Mars is, I have no idea, I just know that if I weigh 96 kilos on Mars on earth I probably weigh about 30 kilos. In the end that doesn't matter, it's just a game.

The game will have to do with an astronaut named Rony Otto, who has to keep his facilities in optimum condition to survive, and among his tasks he has to maintain certain objects on Mars that help communications with the earth and future expeditions to the red planet.

That's it, the first month of the year is over and let's see what fate has in store for us.

Translated with www.DeepL.com/Translator

(http://i68.tinypic.com/fla6tk.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Steve Elliott on January 29, 2018, 08:33:24 PM
Mate, you clearly have the talent to make a game...No more excuses  ;D
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 29, 2018, 09:46:47 PM
In-game particle test.  8)

(http://i66.tinypic.com/eqcxmd.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 30, 2018, 12:26:52 AM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 30, 2018, 12:11:06 PM
I've implemented something called Tween, the idea is that the game does not exceed 60 marks per second, this serves to make the player not go faster than it should be on much faster machines, and when the fps goes down much faster, the player will not go very slowly.
Now I have to go to work.  :P
(http://i64.tinypic.com/mlihk5.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 12:21:16 AM
  ;D

(https://pbs.twimg.com/media/DU1COwYWAAErqBy.jpg:large)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 12:33:15 AM
(https://pbs.twimg.com/media/DU1EldTX4AAqtN1.jpg:large)  :P
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 04:36:18 AM
System particles in wheels.
(http://i65.tinypic.com/2zjb0wx.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 04:40:02 AM
(http://i65.tinypic.com/aazy55.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on January 31, 2018, 05:51:37 PM
Video for some hot particle action?  ;)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 07:01:28 PM
It's not perfect  :-X, but to take the video out I'm adjusting that under certain circumstances dust particles and rocks are activated in each tire under certain conditions, for example that a tire is touching the ground and when it reaches a certain speed the tire.   :)

(http://i63.tinypic.com/289h35k.png)

I'm gonna put your name on the game, you've always been the only fan of what I do. :D
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 07:07:17 PM
System Particles in Wheels.
Code: [Select]
For p = 0 To 3

PositionEntity partRuedas[p]\emisor%, EntityX(vehiculo\ruedas[p]\ente), EntityY(vehiculo\ruedas[p]\ente)-1, EntityZ(vehiculo\ruedas[p]\ente)

Next



For p = 0 To 3


If phJointVehicleGetTireAir%(vehiculo\sVehiculo,vehiculo\pxRuedas[p]) = False  Then
If Int(phJointVehicleGetTireOmega#( vehiculo\sVehiculo, vehiculo\pxRuedas[p] ))>1   And OnParticulas% = False Then

For x = 0 To 3
Emitter_Start ( partRuedas[x]\emisor% )
Next
OnParticulas% = True
Else

If Int(phJointVehicleGetTireOmega#( vehiculo\sVehiculo, vehiculo\pxRuedas[p] ))<100
For x = 0 To 3
Emitter_Stop  ( partRuedas[x]\emisor% )

OnParticulas% = False
Next

End If


End If 
End If

Next

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 09:08:12 PM
This is as follows, since the previous code complementing, if a tire did not touch the ground all the emitters of particles are deactivated, even if for example three tires touch the ground and a trowel does not touch it.

In this case, each tire that does not touch the ground switches off the emitter individually.

Now I'll run some tests and make the video.  :-X

Code: [Select]

Function UpdateParticulasRuedas( vehiculo.TVehiculo )



For p = 0 To 3

PositionEntity partRuedas[p]\emisor%, EntityX(vehiculo\ruedas[p]\ente), EntityY(vehiculo\ruedas[p]\ente)-1, EntityZ(vehiculo\ruedas[p]\ente),True

Next


;  - Emisor Rueda 1.
If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[0]) = 0    And OnParticulas1% = False


If Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[0])) > 2 Then

Emitter_Start ( partRuedas[0]\emisor% )
OnParticulas1% = True
End If

Else
If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[0]) = 1 Or Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[0])) < 2    And OnParticulas1% = True Then


Emitter_Stop ( partRuedas[0]\emisor% )


OnParticulas1% = False
End If



End If

; - Emisor Rueda 2.

If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[1]) = 0    And OnParticulas2% = False


If Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[1])) > 2 Then

Emitter_Start ( partRuedas[1]\emisor% )
OnParticulas2% = True
End If

Else
If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[1]) = 1 Or Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[1])) < 2    And OnParticulas2% = True Then


Emitter_Stop ( partRuedas[1]\emisor% )


OnParticulas2% = False
End If



End If

; - Emisor Rueda 3.

If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[2]) = 0    And OnParticulas3% = False


If Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[2])) > 2 Then

Emitter_Start ( partRuedas[2]\emisor% )
OnParticulas3% = True
End If

Else
If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[2]) = 1 Or Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[2])) < 2    And OnParticulas3% = True Then


Emitter_Stop ( partRuedas[2]\emisor% )


OnParticulas3% = False
End If



End If




; - Emisor Rueda 4.

If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[3]) = 0    And OnParticulas4% = False


If Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[3])) > 2 Then

Emitter_Start ( partRuedas[3]\emisor% )
OnParticulas4% = True
End If

Else
If  phJointVehicleGetTireAir( vehiculo\sVehiculo, vehiculo\pxRuedas[3]) = 1 Or Int(phJointVehicleGetTireOmega( vehiculo\sVehiculo, vehiculo\pxRuedas[3])) < 2    And OnParticulas4% = True Then


Emitter_Stop ( partRuedas[3]\emisor% )


OnParticulas4% = False
End If



End If




End Function
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 11:22:02 PM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 11:27:33 PM
(http://i63.tinypic.com/2aiodx5.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on January 31, 2018, 11:33:23 PM
(http://i67.tinypic.com/nvzcjt.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 12:20:53 AM
(http://i66.tinypic.com/33codts.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 01:00:30 AM
Root folder game.
(http://i65.tinypic.com/34447eq.png)
Root folder Data.
(http://i67.tinypic.com/e7nhvl.png)

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 02:15:45 PM
Pointers in Blitz3D  :-\

The only viable way I have been able to implement pointers in Blitz3D is specifically in asset loading, which is done in the background while the main thread shows an animated image.

So that's the task for today, to implement a resource loading system and display a simple "Loading"message.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 03:33:51 PM
(http://i63.tinypic.com/29eiyhw.png)

Structure of the programme.

The best way this has worked for me is to separate the file into several parts, this allows me to keep it from getting out of hand.

For example I have a TCube file, which implies the creation of a cu bo, in the main file I use a variable with that type of custom data. I don't know if it's the best way to do it, because those who learn badly, stay that way, but personally it has worked for me and I think it's the best way for this not to get out of hand.

Translated with www.DeepL.com/Translator
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 04:13:29 PM
Windows Loading...

(http://i65.tinypic.com/z4uva.png)

A simple load message, in which an animation, load bar etc. can be implemented.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 06:30:01 PM
And here we go with the implementation of an asset loading thread in the background. The idea of doing this way is that while loading the game resources, I can show a progress bar, an animated image etc. And this is thanks to the FastPointer library.  :)

Code: BlitzBasic
  1. ;  Test Loading thread
  2. Local hiloCarga1.TPointer = Null
  3.  
  4.  
  5. Type TPointer
  6.        
  7.         Field hilo%
  8.         Field puntero%
  9.        
  10.        
  11. End Type
  12.  
  13.  
  14. Function Init_Pointer.TPointer()
  15.        
  16.         Local self.TPointer = New TPointer
  17.        
  18.         self\puntero        = FunctionPointer()
  19.        
  20.         Goto skip
  21.         ThreadFunction()               
  22.         .skip  
  23.         self\hilo%          = CreateThread (self\puntero, 100)
  24.        
  25.         Return ( self.TPointer )
  26.        
  27. End Function
  28.  
  29. Global ThreadVar = 0
  30. Global textura%
  31. Function ThreadFunction ( StartValue% = 0 )
  32.         ThreadVar = StartValue
  33.         Repeat
  34.                
  35.                 Delay 100
  36.                 DebugLog textura
  37.                 If textura%  = 0 Then
  38.                                
  39.                         textura% = LoadTexture("Data\Texturas\Desierto.png")
  40.                                
  41.                        
  42.                 End If
  43.                
  44.                
  45.         Forever
  46. End Function
  47.  
  48.  
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 08:25:34 PM
The resource loading thread has been implemented in the background, while the main thread displays a "Loading"message.  :P

Code: BlitzBasic
  1. ; ---------------------------------------------
  2. ; Proyecto              : TestPace X.
  3. ; Programador           : Yue Rexie.
  4. ; Sitio Web             : http://www.iris3dgames.ga
  5. ; fichero                       : TPointer.bb
  6. ; ---------------------------------------------
  7. ; Nota                  : Tipoi TPointer.
  8. ;                                 Objetos Pointer.
  9. ; ---------------------------------------------
  10.  
  11. Local hiloCarga1.TPointer = Null
  12.  
  13. Type TPointer
  14.        
  15.         Field hilo%
  16.         Field puntero%
  17.        
  18. End Type
  19.  
  20. Function Init_Pointer.TPointer()
  21.        
  22.         Local self.TPointer = New TPointer
  23.         self\puntero        = FunctionPointer()
  24.        
  25.         Goto skip
  26.         funcionHiloCarga()             
  27.         .skip
  28.        
  29.         self\hilo%          = CreateThread (self\puntero, 100)
  30.        
  31.         Return ( self.TPointer )
  32.                
  33. End Function
  34.  
  35.  
  36. Function funcionHiloCarga ( StartValue% = 0 )
  37.        
  38.         Repeat 
  39.                 If carga1% = False   Then
  40.                        
  41.                         ; - Sombras.
  42.                         sombra1.TSombra     = Init_Sombra(2)
  43.                         sombra2.TSombra     = Init_Sombra(1)
  44.                         ShadowRange           ( sombra2\sombra, 160)
  45.                         sombra3.TSombra     = Init_Sombra()
  46.                        
  47.                         ShadowOffset( sombra1\sombra,-1.5, 0, 0 )
  48.                        
  49.                         sol.TLuz                        = Init_Luz()
  50.                         RotateEntity            ( sol\ente, 030, 10, 000 )
  51.                         ShadowLight                     ( sombra1\sombra, sol\ente )
  52.                         ShadowLight                     ( sombra2\sombra, sol\ente )
  53.                         ShadowLight                     ( sombra3\sombra, sol\ente )
  54.  
  55.                        
  56.                         ; - Vehiculo Tesla.
  57.                         vehiculo.TVehiculo      =  Init_Vehiculo()
  58.                         phBodySetPos ( vehiculo\pxChassis%, 0, 3.5, 0 )
  59.                        
  60.                         CreateShadowCaster  ( sombra1\sombra, vehiculo\chassis\ente )
  61.                         CreateShadowCaster  ( sombra3\sombra, vehiculo\chassis\ente )
  62.                         For s = 0 To 3
  63.                                 CreateShadowCaster  ( sombra1\sombra, vehiculo\ruedas[s]\ente )
  64.                                 CreateShadowCaster  ( sombra3\sombra, vehiculo\ruedas[s]\ente )
  65.                         Next
  66.        
  67.                         terreno.TPlano          = Init_Plano(16)
  68.                         SetBumpEnte(terreno\ente, terreno\textVector, terreno\textNormal, terreno\textDifusa, sol.TLuz )
  69.                         EntityTexture           ( terreno\ente, sombra1\texSombra, 0, 3 )
  70.                        
  71.                         colinas.TTerreno    = Init_Terreno("DesiertoAltura.png" )
  72.                         SetBumpEnte(colinas\ente, colinas\textVector, colinas\textNormal, colinas\textDifusa, sol.TLuz )
  73.                         EntityTexture           ( colinas\ente, sombra1\texSombra, 0, 3 )
  74.  
  75.                         If GfxDriverCapsEx\TextureMaxStages > 4  
  76.                                 EntityTexture           ( terreno\ente, sombra2\texSombra, 0, 4 )
  77.                         Else
  78.                                
  79.                                 fadeSombra = Init_Textura("fade.png", 59)              
  80.                                 ShadowFade  sombra1\sombra, fadeSombra\ente
  81.  
  82.                         End If
  83.                        
  84.  
  85.                         ; - Indicadores.
  86.                         indicadores= Init_Indicador()
  87.                         SetPositionIndicador( indicadores,  0, 2, 48 )
  88.                         RotateEntity   ( indicadores\Indicador\ente, 180, 90, 0 )
  89.        
  90.                         ; - Fuentes.
  91.                         fuenteBlitz = Init_Fuente("Link.img","blitz_20b.tga")
  92.                         SetImageFont (fuenteBlitz\fuente )
  93.                         fuenteSpace = Init_Fuente("Link2.img","space_age_20.tga")
  94.                         fuenteDigital = Init_Fuente("Link3.img","ds-digital_25.tga")
  95.        
  96.                     ; - Tablero.
  97.                         tablero.TPuntos = Init_Puntos()
  98.                        
  99.                         ; - Jugador.
  100.                         jugador.TJugador = Init_Jugador()
  101.                         phBodySetPos jugador\body, -5, 3.5, 0
  102.                        
  103.                         carga1% = True
  104.                        
  105.                 End If
  106.  
  107.         Forever
  108. End Function
  109.  
  110. Function DeInit_Pointers()
  111.        
  112.         Local selfs.TPointer = Null
  113.        
  114.        
  115.         For selfs.TPointer = Each TPointer
  116.                
  117.                 If IsThread(selfs\puntero) Then
  118.                        
  119.                         FreeThread(selfs\puntero)
  120.                         selfs\puntero = 0
  121.                         selfs\hilo    = 0
  122.                
  123.                 End If  
  124.                
  125.                 Delete selfs.TPointer
  126.        
  127.                
  128.         Next
  129.        
  130. End Function
  131.  
  132.  

File Main.

Code: BlitzBasic
  1.  - Carga Recursos.
  2. ; get pointer to thread function
  3. hiloCarga1.TPointer = Init_Pointer()
  4.  
  5.  
  6. While carga1 = False
  7.        
  8.        
  9.        
  10.         ;RenderWorld
  11.         StartDraw
  12.  
  13.         DrawText("LOADING", GraphicsWidth()/2-StringWidthEx%("Loading")/2, GraphicsHeight()/2+200)
  14.  
  15.         EndDraw
  16.        
  17.         Flip
  18.         Delay 1000
  19.        
  20. Wend
  21.  
  22. carga1%  = True
  23.  
  24. FreeImageFont(fuenteLoading\fuente )
  25. fuenteLoading\fuente  = 0
  26. Delete fuenteLoading.TFuente
  27.  
  28. DeInit_Pointers()
  29.  
  30.  
  31.  

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 09:24:04 PM
Loading Game.  8)

(http://i66.tinypic.com/27wyadg.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 01, 2018, 09:47:17 PM
Loading ok.  ;D

(https://pbs.twimg.com/media/DU-yNVcW0AAuTO_.jpg:large)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 02, 2018, 12:30:58 AM


(https://pbs.twimg.com/media/DU_XTuTW0AAgWir.jpg:large)

The character for the game, although it will be in first person, will serve as a decoration for the space suits and his head will be seen in the player's hud.

Thanks to Kuro for the model.  :)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 02, 2018, 01:37:29 AM
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 02, 2018, 02:06:45 AM
Okay, school break week's over.  Monday I'm back in again, so I have to make time for this.
 8)
 (https://pbs.twimg.com/media/DU_tcsPW0AAmYAg.jpg:large)

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 02, 2018, 02:18:47 AM
(http://i67.tinypic.com/2e5r3vl.png)
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on February 02, 2018, 07:40:14 PM
Apparently Elon wants his Tesla to go into space, orbiting Mars, while playing the song Space Oddity  (https://www.youtube.com/watch?v=iYYRH4apXDo) by David Bowie.
May I suggest that you name the driver 'Major Tom', or to avoid having to pay royalties and such: 'Major T.'  ;)

You could put a Mars city far in the distance as a end goal to drive to and name it 'Odd Spacity'  hehehe.




 
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 02, 2018, 10:59:55 PM
There are many ideas in this regard, they are all welcome because sometimes the imagination of exhaustion vanishes from me.  The ideas I have range from finding Sumerian tables, statues in rocks, mystery, conspiracy, pyramids, etc. and I also love the idea of the city. :)

For now I'm analyzing the rock issue, and the best way to think about it is when you're on public transportation sitting looking out the window. ;)

Translated with www.DeepL.com/Translator
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on February 02, 2018, 11:05:23 PM
Hehehe. Hope you were being sarcastic about the publice transport. Round here can be really annoying at times.  ;)
BTW don't worry: you are doing a marvelous job so far. And you really have a good eye for design too.

Good to see the astronaut fitting in so well. I knew would find his way back into the 3d world.
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 02, 2018, 11:07:11 PM
It should be noted that this only happens when I can find a chair by the window, and it happens very rarely.   :-X
Title: Re: Return to Blitz3D / windows 10
Post by: RemiD on February 03, 2018, 10:12:37 AM
@Yue>>another game made with Blitz3d, were the goals are to analyze the planet structure, to retrieve damaged "probes", and also to find artefacts :

Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 03, 2018, 04:18:32 PM
@RemiD Interesting. :)
Title: Re: Return to Blitz3D / windows 10
Post by: Yue on February 03, 2018, 08:25:24 PM
(http://i63.tinypic.com/ek17jp.png)

Generating a pitcher of the game from PureBasic. Whose options are to start the game, graphic options etc.
Title: Re: Return to Blitz3D / windows 10
Post by: MagosDomina on May 15, 2018, 11:12:05 PM
Great stuff Yue! Always impressed with your work.
Title: Re: Return to Blitz3D / windows 10
Post by: peteswansen on May 16, 2018, 06:54:30 PM
Welcome back Yue!  I thought you would find your way here again...(the "?onkey 2" site is not fun...)
Title: Re: Return to Blitz3D / windows 10
Post by: Derron on May 16, 2018, 07:22:54 PM
Yue was not here for some months now - and his project (see links in his footer) was not updated since 60 days too. Think he concentrates on "serious life issues" now - rather than "internet fun".

bye
Ron
Title: Re: Return to Blitz3D / windows 10
Post by: Rick Nasher on May 16, 2018, 11:51:12 PM
Perhaps something(s) happened we have no knowledge off..

He came from a dark place in life and was lucky to have escaped into the light, but maybe that still took it's toll, came back to haunt him, didn't feel all that great, for can be hard to adjust to regular society after something like that.

Especially if society isn't all that understanding and nice in general for people who don't fit into the machine as a smooth gear and will most of the time be outcast, rejected and unforgiven.

So it's probably a big struggle..



Every person has his own battles to fight and flaws to overcome



SimplePortal 2.3.6 © 2008-2014, SimplePortal