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 (29 user(s) are browsing Forum)

Members: 2
Guests: 57

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

Current balance: -300€
(last updated 11/2017)

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

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 98 users playing Freelancer on 34 servers.
November. 22, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2) 3 4 5 »


Re: 3D Starchart - Teaser 1: Rendering Planets
Just can't stay away
Joined:
2010/10/21 16:18
Group:
Registered Users
FLServer Admins
Posts: 202
Offline
OK good news so

Oh, just a suggestion :
is there an easy way for you to let the user point at the FL folder instead of reading the registry ? So that, we can choose if we want load vanilla FL or a modded one , By asking the user to point at the universe.ini or the freelancer.ini r the FL Folder.

It can be a cool option for your future release.

Posted on: 2011/3/18 16:22
Top
Re: 3D Starchart - Teaser 1: Rendering Planets

Joined:
2011/1/31 13:48
From Darmstadt Depot, Stuttgart System, Rheinland
Group:
Registered Users
Posts: 25
Offline
No problem at all. But I just "released" version 0002, should work with JFLP

I didn't plan on such a quick release plan, so don't get used to it

I will include more user choices in future releases

Posted on: 2011/3/18 16:41
MFG
Obstbaum

"What's the secret of time travel doing on Fry's ass?"
"It was bound to be somewhere"
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Quite a regular
Joined:
2008/3/9 22:13
From Vienna
Group:
Registered Users
FLServer Admins
Posts: 132
Offline
good work, just wondering is this going to be a kind of system editor?
cause thats what ive been working on. (tho not much recently due to real life)

Posted on: 2011/3/18 17:04
The bar is where friendly people like to meet before they launch to space and kill each other. (Test)
Top
Re: 3D Starchart - Teaser 1: Rendering Planets

Joined:
2011/1/31 13:48
From Darmstadt Depot, Stuttgart System, Rheinland
Group:
Registered Users
Posts: 25
Offline
No not an editor really, more a system viewer, well, a star chart

But Starchart really is just a frontend for FLApi, a library im working on to access Freelancer data. The api could be eqipped with editing functions (I plan to, some time in the distant future), so then it can be used to build editors. Starchart itself could evolve into a new engine for Freelancer, but that is far far off. I'm just scratching at the surface.

Posted on: 2011/3/18 17:26
MFG
Obstbaum

"What's the secret of time travel doing on Fry's ass?"
"It was bound to be somewhere"
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1805
Offline
Found another problem caused by JFLP. I use the longer "En Dash" (U+2013) for the gate "arrows". This character isn't present in the sprite font, so another exception is thrown. Solution is simple, add s = s.Replace('\x2013', '-'); before MeasureString in drawString in SystemMap.cs. Well, simple for that particular problem, but there could be other missing characters, so a more robust solution is needed.

Posted on: 2011/3/19 2:46
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Just can't stay away
Joined:
2010/10/21 16:18
Group:
Registered Users
FLServer Admins
Posts: 202
Offline
So i have maked some other tests :
Performaance seems to be good, i can change 25+ times of systemes, but some systems are unable, if you click on the map, nothing append, and on some systems, soft crach with the "system.exception" throwed.
And always this "cast exception" on a modded freelancer.


But the god side is that the perfprmance is rather good and system swytch are fast, on my computer.

Posted on: 2011/3/20 0:14
Top
Re: 3D Starchart - Teaser 1: Rendering Planets

Joined:
2011/1/31 13:48
From Darmstadt Depot, Stuttgart System, Rheinland
Group:
Registered Users
Posts: 25
Offline
@Ezekiel:
OK, thank you for testing. I'm glad performance is good, and it should be considering almost all data is loaded at startup (resuting in the immense memory usage). That some systems don't react when clicking on them is because the click detection is done really "quick-and-dirty".
And the CastException, yeah well.... ^^

@Adoxa:
My "solution" yesterday, well two days ago, was only a quick fix. I hoped it would solve some problems with JFLP, maybe it did but of course not all. I'll need some time looking over the code, testing with various installations and trying out your suggestions. Especially the casting issues.... ^^

So, I dont know how long it'll take, how much time I can make in the week(s) to come. This post was, after all, only meant to be a preview. But suggestions are always appeciated of course, so thanks to everyone.

Posted on: 2011/3/20 0:34
MFG
Obstbaum

"What's the secret of time travel doing on Fry's ass?"
"It was bound to be somewhere"
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1805
Offline
I've taken the liberty of attaching an updated version. It should fix all problems reading ini files, as well as reducing memory usage (I could previously only visit three systems before running out). It also lets you hold down control to move five times quicker. Note: this is just the binaries, you still need the Content directory. Source patch included (from revision 109).

Attach file:


zip Starchart.zip Size: 97.91 KB; Hits: 197

Posted on: 2011/3/20 9:08
Top
Re: 3D Starchart - Teaser 1: Rendering Planets

Joined:
2011/1/31 13:48
From Darmstadt Depot, Stuttgart System, Rheinland
Group:
Registered Users
Posts: 25
Offline
build 0.0.0.4 online: https://sourceforge.net/projects/flapi/files/

Includes the changes by Adoxa (thanks man^^) except for the Tradelane Names workaroud (I want to do it right, might take time though)

Now includes a FolderBrowserDialog at startup so you can select a custom Freelancer install

Edit: Turns out I made more new errors than I fixed old ones in 0.0.0.3, so here is number 4.
Just realised the EN-Dash problem was is Jumpgate names, not Tradelannes, silly me...
Anyway, fixed now.

Posted on: 2011/3/20 16:17

Edited by obstbaum on 2011/3/21 8:55:24
MFG
Obstbaum

"What's the secret of time travel doing on Fry's ass?"
"It was bound to be somewhere"
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Just can't stay away
Joined:
2010/10/21 16:18
Group:
Registered Users
FLServer Admins
Posts: 202
Offline
Good job to both of you I will make some other tests

Posted on: 2011/3/20 18:31
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1805
Offline
Here's another update. Greatly improves system selection, including showing the name as you move over it (although it has a horrible magenta flash each time, but that could just be me). Made the gate lines green (I had also intended to make systems with both gate & hole use yellow, but that wasn't as simple as it sounded) and gave gates precedence over holes. Less strict model loading, so Omicron Alpha (and perhaps others) will load. Even more memory fixes. Improved font support (e.g. Lübeck in Hamburg). As before, this is just the binaries plus patch (for r116).

Attach file:


zip Starchart.zip Size: 91.09 KB; Hits: 195

Posted on: 2011/3/22 15:05
Top
Re: 3D Starchart - Teaser 1: Rendering Planets

Joined:
2011/1/31 13:48
From Darmstadt Depot, Stuttgart System, Rheinland
Group:
Registered Users
Posts: 25
Offline
Open in new window

Open in new window

Open in new window


Pre Alpha Release 0.0.0.5 is available, as always, on Sourceforge: click

Includes Adoxas 2nd patch (this time I actually applied it, so it should all work)

@Adoxa:
Thanks so much for your system selection improvement, somehow I didn't get the math right. I continued your work and added differently coloured stars.
Your memory improvements are working graet, too. Is't so simple, really, but somehow I always rely too much on the garbage collector^^

I removed a restriction that prevented models without names from being drawn, resulting in much mor "stuff" in the systems.

Added some experimental lighting.

Added a simple launcher that allows you to select the Freelancer install to use and change the window size or make it fullscreen.

AND: This time I visited all (vanilla) systems and they all worked (at least on my pc) so hopefully there aren't so many errors as in my previous releases.

Posted on: 2011/3/23 17:09
MFG
Obstbaum

"What's the secret of time travel doing on Fry's ass?"
"It was bound to be somewhere"
Top
Re: 3D Starchart - Teaser 1: Rendering Planets
Quite a regular
Joined:
2008/6/13 4:53
From Canada
Group:
Registered Users
Posts: 121
Offline
@obstbaum:

Nice job so far on this, i am having allot of fun working with it.

I am wondering though, if you have any ideas on how to go about using the left mouse button to select scene objects and have them highlighted like in FL when you select something. I tried a few ideas but nothing has really worked yet.

For what i am doing i added a combobox that is populated with all the valid system objects of which i can select items, move the camera close to it, and show the objects properties in a property grid. but i would prefer to use the left mouse button in the scene to select them instead.

-----

I have also started extending the FLApi to add in a Faction Class, and classes for the Market ie:

FLApi.Market.Commodities, FLApi.Market.Ships, FLApi.Market.Equipement

i just started on them so no real code yet.

the Class: FLApi.Factions.FLFaction is working fine, all it really does though is to parse the initialworld.ini to retrieve the Proper name of factions. Although this will be extended to include a list of their reputations with other factions, which will be easy enough to do , just have not coded it yet.

I am also working on extending the Costume class , which so far was a simple thing since you already had the code in place and parsing out those lines anyway. Again, plans are to extend this Class.

-----

Because of the project i am using these in i had to convert the Starchart project into VB.NET, but somewhere along the lines of the conversion process something went wrong and now Planets are not being physically rendered in the scene, which also has a side effect of messing up the scene lighting. I have not really delved into this problem too much.

Anyway Cheers, and nice job so far.

Posted on: 2011/3/30 17:35
Top
Re: 3D Starchart - Teaser 1: Rendering Planets

Joined:
2011/1/31 13:48
From Darmstadt Depot, Stuttgart System, Rheinland
Group:
Registered Users
Posts: 25
Offline
Quote:
I am wondering though, if you have any ideas on how to go about using the left mouse button to select scene objects and have them highlighted like in FL when you select something. I tried a few ideas but nothing has really worked yet.


You need to project the mouse position into 3D space. I was going to include it but didn't have the timne yet.

Quote:
Because of the project i am using these in i had to convert the Starchart project into VB.NET, but somewhere along the lines of the conversion process something went wrong and now Planets are not being physically rendered in the scene, which also has a side effect of messing up the scene lighting.


In theory it should work as C# and VB.NET are essentially the same, but I've never tried this (why would anyone want to use VB when they can have C# )

Good luck with your project, I will continue to update Starchart as soon as I have time.

Posted on: 2011/3/31 12:27
MFG
Obstbaum

"What's the secret of time travel doing on Fry's ass?"
"It was bound to be somewhere"
Top
Anonymous
Re: 3D Starchart - Teaser 1: Rendering Planets
Anonymous-Anonymous
WoW! Its amazing!!!! Whats left now is the fields, suns and maby even effects... Too bad I can't help you...

Posted on: 2011/3/31 15:07
Top
« 1 (2) 3 4 5 »