Game test v0.01

Advanced game related topics
User avatar
idle
Always Here
Always Here
Posts: 6154
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: 287
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: 821
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: 170
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: 821
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: 6154
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: 170
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: 821
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
Post Reply