Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
59 user(s) are online (26 user(s) are browsing Forum)

Members: 0
Guests: 59

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +5€

Current balance: -60€
(last updated 10/2020)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 49 users playing Freelancer on 40 servers.
November. 26, 2020
The Starport Forum Index > All Posts (Treewyrm)

Bottom Bottom   Previous Topic   Next Topic

(1) 2 3 4 ... 6 »


Re: Copying and Editing an Existing Starsphere
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Yeah it's overzealous AV having false positives, been a huge headache for me to solve so far, seems I'll have to do installer in different software and code signing is a mess. There's no malicious code in it, in fact there are no executable installed at all, just a bunch of maxscript files, shaders and png icons.

Posted on: 6/24 7:59
Top
Topic | Forum


Re: Copying and Editing an Existing Starsphere
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
If you want vertex alpha and colors then there's maxlancer for autodesk 3ds max. Making starspheres is relatively simple there although initial learning curve can deter some.

Posted on: 6/23 14:35
Top
Topic | Forum


Re: Librelancer 2019.08
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
This model has arbitrarily bloated number of VMeshGroups in mesh for no reason whatsoever. It's not engine job to resort and merge groups, it is exporter job to produce sane result by combining face groups matching material within each LOD of each compound part.

I've just re-exported it in Maxlancer which resulted in only 6 VMeshGroups. 6 draw calls is all it takes and all it should have ever been in the first place. There never was any excuse to have any more than that.

Posted on: 6/9 8:39
Top
Topic | Forum


Re: Librelancer 2019.08
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
It's just a very badly exported model. VMeshGroup of same material reference are expected to be pre-merged within block range of single VMeshRef. There's zero benefit of fragmenting it.

This is clearly a very bad attempt to get around the fact milkshape exporter can't properly export vertex normals (and exporter being dumb enough not to merge mesh elements by materials).

All in all that fragmentation had led to 6200+ draw calls and that's the cause of such low FPS. Model doesn't exceed any buffer limits nor is anywhere close to, it's just a very bad export case.

Posted on: 6/7 10:11
Top
Topic | Forum


Re: The big .thn/.lua research thread
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
That's kinda stupid. For a revolute part (which quarters_lod1 is) the values that go there are pairs of timestamp (in seconds) and rotation angle (in radians). The ones you list are going to create partial spin back and forth rather than continious one.

Assuming you want to do full 360 spin in 10 seconds the solution is:
0.0 <- Frame 1 timestamp: 0 seconds
0.0 <- Frame 1 value: 0 degrees
5.0 <- Frame 2 timestamp: 5 seconds
3.14159 <- Frame 2 value: 180 degrees
5.0 <- Frame 3 timestamp: 5 seconds
-3.14159 <- Frame 3 value: -180 degrees
10.0 <- Frame 4 timestamp: 10 seconds
0.0 <- Frame 4 value: 0 degrees


Notice the doubled keyframe at half duration, a flip occurs there to continue rotation into a loop.

Flip signs at values of mid-keyframes if you want to rotate the other direction. Naturally your Rev part must have min/max angles set to -360 and 360 degrees respectively.

Posted on: 3/26 14:09
Top
Topic | Forum


Re: The big .thn/.lua research thread
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Quite frankly I just don't see what's wrong there, probably because whatever is supposed to be incorrect is just too far and youtube quality makes it all kinda hard to spot anyway.

Either way it's all about how map keyframes are set and whether they are looped or not. Some vanilla models have that and for full 360 rotation they have to make a quick jump as maximum rotation between two keyframes is 180 degrees. This jump can become noticable if there's time delta between its keyframes.

Posted on: 3/24 11:01
Top
Topic | Forum


Re: The big .thn/.lua research thread
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
How animation plays out depends on several factors. If animation script contains maps for more than one part and each map has different durations the animation will go out of sync as each part will have its animation looped independently. Type of looping is defined by event_flags property (restart, reverse, ping-pong, etc).

Posted on: 3/24 9:56
Top
Topic | Forum


Re: The big .thn/.lua research thread
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
There is a simpler fix for lights textures, you just need a model to embed texture used by those light sprites (matching name too) and push it into scene so it'll load the resources and display those sprites.

Regarding paths I'd normally just make them in 3Ds MAX. But there isn't a readily available solution I'm afraid, so it's not like you can install it, make paths and grab em from there. For my own uses I've made a script to export spline knots and capture rotation of a dummy object to THN path key points.

Posted on: 2019/11/15 16:34
Top
Topic | Forum


Re: The big .thn/.lua research thread
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Glad to be of help. Just keep in mind while most information here is correct a few things aren't, I simply never got around to correct them or to continue writing it.

Monitor is meta-object representing your viewport, your screen to put it simple. Switching between cameras is event of SET_CAMERA. You should have only one monitor object in scene.

Pretty much every color there is going to be RGB, however THN is inconsistent when it comes type of values: integers ranging from 0 to 255 or normalized floats from 0.0 to 1.0. Some properties expect integer, others expect float.

Regarding lights it's just a case of textures not loaded for some reason, so it defaults to plain white color which is then tinted to whatever sprite had for diffuse color.

Posted on: 2019/11/15 13:43
Top
Topic | Forum


Re: The big .thn/.lua research thread
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Here is unfinished doc I was writing on THN stuff. If you want to continue from where I left off feel free to request writing rights.


Posted on: 2019/11/15 11:40
Top
Topic | Forum


Re: OpenGL Rendering
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
TBN data could be put and spread across uv mapping vectors in VMeshData. FL materials don't use more than two uv maps, so six more channels as defined by FVF are free for the taking. Some quantization techniques could be employed to compress into fewer bits. Though if the cost of generating them on the fly isn't hitting performance it might not be as useful.

Posted on: 2019/11/11 10:59
Top
Topic | Forum


Re: 3Ds MAX tools
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
A quick update. It is still in development.

Character animations. I was really curious about that given complete lack of .dfm tools. Ichiru helped to get initial mesh, after that I began digging into bone structures and finally animations which proved to be not so simple. Currently I only have importing functionality, but once most things there are put together exporting deformable models will be relatively simple to do.

Open in new window
Open in new window

Most work regarding rigid models is complete. CMP and 3DB are supported. Hitboxes (.sur) can be imported and exported as well, as closely as I can to match vanilla behavior (like parent parts duplicating hulls from fixed descendants in parent coordsys).

Open in new window
Open in new window

Materials use custom DirectX shaders, can be imported and exported (either separately or embedded into model files). At the moment only a few common types are implemented: various Dc* types, nebula, btdetailmaterial and nomadmaterial. Textures are automatically decompressed into Targa images and specific filename patterns can be used to indicate what format texture will be exported to when put into .mat file or embedded into model (requires Nvidia Texture Tools installed).

Open in new window
Open in new window

HUD wireframes can be created either by line objects with knots snapped to mesh vertices or by extracting visible edges (in 3Ds max Editable meshes have manual edge visibility).

Open in new window

A few additional tools were made to have starscape modeling much easier.

Getting pretty close.

Posted on: 2019/11/4 15:23
Top
Topic | Forum


Re: 3Ds MAX tools
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Similar to other tools I've made visuals for hardpoint objects and displaying arcs for revolute hardpoints.

Each individual hardpoint can have its own display sizes, one for base and another for arrow + arc.

Open in new window

Posted on: 2019/5/8 22:47
Top
Topic | Forum


Re: 3Ds MAX tools
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Necessary things for .sur.

Made simple but decent API for AABBs analysis and processing to tweak algorithm further and arrange BSP pairs intelligently, which is important for object parts with a lot of convex hulls.

Animated BSP traversal 1
Animated BSP traversal 2

Open in new window

p.s. Generation/processing is instantaneous, I've simply added delays and viewport refresh on every step for animation purposes.

Posted on: 2019/4/21 12:01
Top
Topic | Forum


Re: 3Ds MAX tools
Not too shy to talk
Joined:
2010/8/27 14:02
Group:
Registered Users
Posts: 76
Offline
Unfortunately, no. Different modeling software have different scripting languages and APIs used to create such tools. MAX has MaxScript, Maya has MEL, Blender uses Python and so on. I've picked 3Ds MAX over others simply because of personal experience.

Posted on: 2019/4/6 11:03
Top
Topic | Forum



Top Top
(1) 2 3 4 ... 6 »



[Advanced Search]