Game test v0.01

Advanced game related topics
User avatar
idle
Always Here
Always Here
Posts: 6168
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Game test v0.01

Post by idle »

that's looking very good
pjay
Enthusiast
Enthusiast
Posts: 291
Joined: Thu Mar 30, 2006 11:14 am

Re: Game test v0.01

Post by pjay »

It is looking really good :)

I think the crt curvature is a little too strong though, but that's probably just me.
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

Thanks guys for comments.
@Pjay. Yes, the effect is a little exaggerated so that it can be easily seen. But I like :lol:

Time to jump to other parte of the game :wink:

I got a photo or image with a face, because dialogue system include an image and a param affinity values for every NPC with moods for each character.
I was thinking in how animate a face, with no too much complications to change the expression in levels from: Enemy, angry, neutral, happy, friend and follower.
The solution was this:
The animation is in real time and very fast to change the expression.
Image
Just need one image for every npc.

This is the first version, im working now to produce other expression like amazed, distrustful, afraid and others.
If translation=Error: reply="Sorry, Im Spanish": Endif
Carm3D
Enthusiast
Enthusiast
Posts: 176
Joined: Mon Feb 17, 2025 10:04 am

Re: Game test v0.01

Post by Carm3D »

minimy wrote: Tue Jan 13, 2026 5:21 pm The animation is in real time and very fast to change the expression.
I know there are some very good AI applications that can change expressions on faces. I've seen GmanLives on his YouTube thumbnails add smiles to photos.

If you don't want to use AI, my advice is this: For facial expressions, less is more. Push things too far and it looks gooey or like a rubber mask. Also, genuine smiles change things all through the cheeks and causing the eyelids to squint; it's not just the corners of the mouth that go up. Also, unless the character is intentionally keeping their lips sealed, a smile tends to pull the upper lip up, baring the teeth. Mirrors help with this.

Feel free to contact me privately if you want to discuss this further.
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

I know there are some very good AI applications that can change expressions on faces. I've seen GmanLives on his YouTube thumbnails add smiles to photos.
Hey Carm! This is not AI, is all purebasic code. Is like the CRT fx but centered in zones to be fast, like liquid or other effects in paint programs. Is real time because i pass the imageid and the coordinates of movement and apply the fx. Calling 4 or 5 times i can move eyes, mouth... all at time.
The goal of the project i just use PB, ok, with ogre but all into the PB system.
Thank for the help and comments friend !
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
idle
Always Here
Always Here
Posts: 6168
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Game test v0.01

Post by idle »

if only I could do that to the face in the mirror in the morning after a hard night 😆
I was thinking about doing it as a mapped movie rather than morphing a mesh though it's better to morph as you can handle speech and mood together.
Looks good 👍
Carm3D
Enthusiast
Enthusiast
Posts: 176
Joined: Mon Feb 17, 2025 10:04 am

Re: Game test v0.01

Post by Carm3D »

minimy wrote: Tue Jan 13, 2026 7:42 pmHey Carm! This is not AI, is all purebasic code.
No, I know it wasn't AI... I was suggesting AI would likely deliver the best quality.

If I wanted to attempt what you are doing, realtime PB image deformation, this is what I would do: Cut a hole in the mouth and eyes. This way the deformations do not warp the eyes and teeth. Also, it would allow the teeth to show when the character smiles or is shocked. I would need to code up some kind of shadowing system so the teeth are darker when the lips are sealed and get illuminated when the lips pull back.
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

Jumping again! :lol:

Inventory editor, can make global list of objects and npc/store independent inventory.
Image

One thing less in the list :wink:
If translation=Error: reply="Sorry, Im Spanish": Endif
benubi
Enthusiast
Enthusiast
Posts: 241
Joined: Tue Mar 29, 2005 4:01 pm

Re: Game test v0.01

Post by benubi »

Wow, amazing work + your editors rock! :)
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

Thanks friends for the encouragement!

Yes the editor is very nice to just think in create, without write code.

Continue with my jumping jack flash! :lol:

Now i did a electrical or phone cables ready for the scenes. Is created in real time to be more realistic and random.
Every group of elements have a unique random texture.
Can change the number of vertex in radius and segments of the cable. The example is r=5 s=8
Each pole has 32 vertices and 18 faces, they are highly optimized.

https://youtu.be/8BHHJWXRLhk

Image
If translation=Error: reply="Sorry, Im Spanish": Endif
miso
Enthusiast
Enthusiast
Posts: 673
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Game test v0.01

Post by miso »

Cool! I wish I had that much artistic talent as you ;)
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

Thanks miso! But thanks to you I have learned many great tricks to apply to games. The artist appears behind three beers :lol:

Code: Select all

if only I could do that to the face in the mirror in the morning after a hard night 😆
@Idle: :lol: I was thinking a lot about how to do it and at least for me that was the easiest and most versatile way. The idea of carm3D is good but when alpha channel on the board things get complicated. Stretching in areas with alpha creates rare spots and the deformation does not maintain the lips or eyes.

@Carm3D: I was trying but results with this method and alpha channel no give good results in masked zones. I will try with other method soon :lol:

@benubi: Thanks my friend! i glad you like it.
If translation=Error: reply="Sorry, Im Spanish": Endif
Carm3D
Enthusiast
Enthusiast
Posts: 176
Joined: Mon Feb 17, 2025 10:04 am

Re: Game test v0.01

Post by Carm3D »

minimy wrote: Wed Jan 21, 2026 1:53 am@Carm3D: I was trying but results with this method and alpha channel no give good results in masked zones. I will try with other method soon :lol:
Cool let is know what you come up with.
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

More jumps!!

Because James Cameron and Ridley Scott like the screens... :lol:

Well i was thinking how to make 'screens' with diferent frames for every one.
Material animation is good but is heavy if you use a lot of screens. :shock: really heavy!.

My solution is:
A) 1 texture and 1 material for group of screens. 1 mesh and 1 entity for every screen.
Every texture is composite of many small screens.
b) just change UV in every mesh to fit the mini screens.

Is fast (the gif is not fast :lol: ) and save a lot of memory.

This is the result:
Image

The idea is change the UV of any mesh with coords like this:

Code: Select all

0.0         0.5         1.0 , 0,0
    _________ _________
   |         |         |
   |    A    |    B    |
    _________ _________  0.5
   |         |         |
   |    C    |    D    |
0.0 _________ _________  1.0
Ok, A is 0.0,0.0 to 0.5,0.5 but if you change the coords to 0.5,0.0 to 1.0,0.5 Now A is B.
Is not elegant way but work very fast to change the frame.
Was tested with 100 screens and move fast.
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
minimy
Addict
Addict
Posts: 845
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Game test v0.01

Post by minimy »

Test 1732 screens at time.
Work really nice.

https://youtu.be/j3nxw3sPbHA
Image
If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply