Search found 11 matches

  • 1
  • 2
Search found 11 matches Page 1 of 2
by OTHGMars
Thu Apr 19, 2018 11:48 pm
Forum: C++
Topic: Updating a dynamic texture?
Replies: 2
Views: 75
Awesome, Thanks Timmy.
by OTHGMars
Thu Apr 19, 2018 10:12 am
Forum: C++
Topic: Updating a dynamic texture?
Replies: 2
Views: 75
How do you update part of a texture and leave the rest intact? I have a texture: GFXTexHandle mTexture; mTexture.set(1024, 768, GFXFormatR8G8B8A8_SRGB, &GFXDynamicTextureSRGBProfile, "", 1, 0); This code will paint the entire texture blue: GFXLockedRect *rect = mTexture.lock(); for (U3...
by OTHGMars
Sun Apr 08, 2018 8:22 am
Forum: C++
Topic: Webkit / Render to texture
Replies: 4
Views: 652
Congratulations on getting it integrated in the development branch. Two Questions: Is this something you are still working on? Are you willing to share the code on github?
by OTHGMars
Mon Mar 26, 2018 2:24 am
Forum: C++
Topic: SDL_Joystick and SDL_GameController
Replies: 7
Views: 311
@chriscalef This is probably the function that you're remembering: https://github.com/GarageGames/Torque3D/blob/development/Engine/source/platformWin32/winDirectInput.cpp#L852 . SDL does have equivalent commands for polling individual device states but they are not exposed as console functions in th...
by OTHGMars
Sun Mar 25, 2018 12:52 am
Forum: C++
Topic: SDL_Joystick and SDL_GameController
Replies: 7
Views: 311
@chriscalef Thanks for sharing your results. Does that Joystick report as a 4 or 6 axes in the test module (or sdlJoystickNumAxes(0) in the console)? If it's reporting as a 4 axis, I'd try commenting out these two lines and checking the axis events again. https://github.com/OTHGMars/Torque3D/blob/SD...
by OTHGMars
Thu Mar 22, 2018 10:09 pm
Forum: C++
Topic: SDL_Joystick and SDL_GameController
Replies: 7
Views: 311
@irei1as Thanks for testing and giving feedback! If the driver is actually generating 2 events and the ActionMap has 2 bindings, both would get called. I forgot that F1 has a GlobalActionMap bind in the Full template. I should have picked a different key for that. Anything with a bind in the GlobalA...
by OTHGMars
Tue Mar 20, 2018 7:31 pm
Forum: C++
Topic: Getting the joystick working.
Replies: 3
Views: 188
If you could, please try that Logitech flight stick with this branch http://forums.torque3d.org/viewtopic.php?f=10&t=1205 and post the results. I am very curious if it detects it as a GameController or not and if it handles the axes correctly. I do not have any similar devices to test with.
by OTHGMars
Tue Mar 20, 2018 7:27 pm
Forum: C++
Topic: SDL_Joystick and SDL_GameController
Replies: 7
Views: 311
This is a wip branch that adds support for the SDL_Joystick and SDL_GameController sub-systems to T3D: https://github.com/OTHGMars/Torque3D/tree/SDL_Joy_wip Hopefully with some code-reviews/community input/testing this can be improved and a clean PR made so T3D will have device independent joystick ...
by OTHGMars
Sat Mar 10, 2018 1:05 am
Forum: MegaMotion
Topic: FlightGear is back, and rendering to Blender.
Replies: 7
Views: 589
Is castDynamicShadows = true; set for the material on the rotor and helicopter? If not, that's probably the problem. Looking great btw.
by OTHGMars
Wed Nov 29, 2017 11:02 am
Forum: C++
Topic: Finding simObjects by name, from script.
Replies: 6
Views: 489
In that case: %name = "SomeName"; %objID = findSimObjectByName (%name); would be functionally equivalent to: %name = "SomeName"; %objID = isObject(%name) ? %name.getId() : 0; or, if you want to restrict it to being a member of a particular SimSet. %name = "SomeName"; %o...
  • 1
  • 2
Search found 11 matches Page 1 of 2