Character skins and animations

  • 5 Replies
  • 4805 Views
*

ramccoid

  • Guest
Character skins and animations
« on: December 06, 2006, 11:21:39 pm »
I have tried to change a character skin with a hap animation, but HAL will only perform the animation. How can I get HAL to perform the skin change with the animation together?

*

admin

  • Administrator
  • ***
  • Nomad
  • *
  • 68
Re: Character skins and animations
« Reply #1 on: December 07, 2006, 11:21:41 am »
Some more info would help getting a response, try posting the code you are using.

*

ramccoid

  • Guest
Re: Character skins and animations
« Reply #2 on: December 07, 2006, 06:27:53 pm »
Hi,
Below is the code I am using to achieve the effect I am trying to get, but HAL will only perform the HAP animation without changing the body skin.

raUserSentence = LCase(UserSentence)
anifile = ""

If InStr(raUserSentence, " dress 1 ") <> 0 Then
        HalCommands = "<HAPTEXT>" &  "\settexture [tex= Bodyskins/wear1.jpg]</HAPTEXT>"
        BlockSave=True
        GetResponseBlock = True
        anifile = "TurnAround.hap"
End If

The the next bit of code makes the animation work from the information that is gathered from the previous and that's all that happens. There isn't any skin change at all.

If anifile <> "" Then
        HalCommands = "<HAPFILE>" & anifile & "</HAPFILE>"
        HalBrain.ReadOnlyMode = True
End If

I would be very grateful if you could tell me where I am going wrong.
Thanks

*

admin

  • Administrator
  • ***
  • Nomad
  • *
  • 68
Re: Character skins and animations
« Reply #3 on: December 07, 2006, 06:54:17 pm »
Is this Hal 5 ?

I think you need to change the last bit of code to:

HalCommands = HalCommands  & "<HAPFILE>" & anifile & "</HAPFILE>"


The way the code reads, you are setting Halcommands in the first bit of code, but then replacing it with something else in the next section of code.  I think you can string multiple <HAPFILE> and <HAPLINE> commands together so try the above.

Note that HalCommands isn't a direct command from the brain file to the Haptek player, it is actually a variable that is passed to the main UltraHal program.  So it's not like you tap in a HalCommand and it happens at that point in the program. 

*

ramccoid

  • Guest
Re: Character skins and animations
« Reply #4 on: December 08, 2006, 07:12:43 am »
Thanks very much that works perfectly. I am using HAL6 and I did think 'HalCommands' was a direct command. That's brilliant, it's great to see HAL working the way I wanted it to. Thanks again for all your help, it was well appreciated.

*

admin

  • Administrator
  • ***
  • Nomad
  • *
  • 68
Re: Character skins and animations
« Reply #5 on: December 08, 2006, 12:18:40 pm »
You're welcome, glad it worked  :smiley

 


Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Will LLMs ever learn what is ... is?
by frankinstien (Future of AI)
November 03, 2024, 08:11:00 pm
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
Attempting Hydraulics
by MagnusWootton (Home Made Robots)
August 19, 2024, 04:03:23 am
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

345 Guests, 0 Users

Most Online Today: 336. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles