Forums » Suggestions

Lua - Custom 3d import

Jan 05, 2023 Luxen link
What I'd like is a way to import 3d meshes into the game, for instance to create a custom cockpit view in VR, or to create a custom "inside of a station" view in a custom interface. These objects would not be placed in the existing game space, but instead have a completely isolated "room" where they can be placed and removed from.

Function implementation:
gkspaces - table containing functions for interacting with this "room"

.CreateObjectNode(vector_position, vector_rotation) - function to create an object's "position", that returns a spaces node models are attached to.

.MoveObjectNode(node, new_position, new_rotation) - function to set a node's location to the new coordinates.

.LoadModel(name, path_to_file) - function to load a 3d model from a file, refered to by the given name (overwrites existing names)

.LoadTexture(texture_name, path_to_file) - function to load a texture from an image

.SetModelTexture(name, texture_name) - function to attach the given texture to the named model

.AttachToNode(SpacesNodeID, name) - function to attach the model to the given node

.GetNodeList() - function to return all currently existing nodes

.ClearNode(nodeID) - function that detaches the given node

.ClearModel(name) - function that removes the loaded model from the game and frees memory

.ClearSpace(nil or true) - function that removes all existing nodes. If boolean true is passed, also clears all loaded models.

.ShowSpace() - shows the existing space and starts rendering its objects. This would be shown above the game's 3d environment, but below the iup interface.

.HideSpace() - hides the existing space and turns off rendering.


Obviously, I imagine creating this system would be a HUDE undertaking, but we'd be able to see what our modelling skills look like in the game engine itself (minus the lighting and whatnot), and can expand the aesthetic possibilities of what we can do.

I actually imagine it might be possible in the current system with just combining iup.meshview panels and manually adjusting the provided objects to implement a working substitute - except we can't provide our own meshes (as far as i'm aware, anyways). So, alternatively, adjust the meshview object to accept custom model files and textures.
Jan 05, 2023 haxmeister link
That could be pretty fun!
Jan 09, 2023 mike365smith link
Like Maybe a Bar ? - with a Bartender ? - So they can chat / give you 'Missions'...

I love the potential.

Maybe if this becomes part of the game...
- Players can design and submit - 3D 'Bar Designs' / Bar Assets / 3D Alien Bartenders.

Lets hope that will be easier than Ships. ( no need for - Thrusters, Weapon Mounts or Collision Maps ! )