Character skins and animations

  • 5 Replies
  • 4562 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

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
March 28, 2024, 01:31: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
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

337 Guests, 0 Users

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

Articles