Game Development Community

Neural network ia

by Artur Hallmann · in Torque Game Engine · 05/17/2005 (10:47 am) · 4 replies

Hi i have set a neural network in torque.

i use some for exemple a" bool istarget" for tell to the NN if there is a target .

I added this bool to persistfields
addField( "cistarget", TypeBool, Offset(istarget,ainn));

so the cistarget is the script side of the istarget bool !

if i set cistarget in script side to true , is the istarget one from c++ side going also to true ?

and if i put istarget to false , the cistarget is going to false in the same time ?

So : is the persist field work on 2 update side ?

#1
05/17/2005 (1:55 pm)
.
#2
05/17/2005 (3:08 pm)
I think that Arthur want to know if the variable istarget is modified also in C++ object when you change it in script. And if when you change it in C++ is it also directly replicated to script.

My answer is yes. If you change the value in Script, it will be changed directly in the C++ object and vice-versa.

Consider that the cistarget and istarget point to the same memory slot.
#3
05/18/2005 (11:22 am)
@Arthur,

I'm also studying Neural Networks and how they would interface with TGE, could you post more on your implementation ?
#4
05/29/2005 (3:56 am)
@ Bruno Grieco

for NN i grab a lot from the fear library ...

http://fear.sourceforge.net/

it s under construction and i have not asking the 1 author for published modification , when i ll have done this i ll poste the source


@ Claude-Alain Fournier

Thanks thats all i want to know ;p


@thc-03

nice try :D