These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE General Discussion

 
  • Topic is locked indefinitely.
 

Embedding the WebGL Shipviewer in Other Sites: Weekend Project Complete!

Author
Baeryn
Sol Enterprises
#1 - 2013-02-17 20:13:11 UTC
Hey guys, I just finished up my weekend project, which gives you an embed code for the EVE Online shipviewer. I stripped out most of the UI, added my own browser, and set up an embeddable version. :)

For example, to embed the "Ark";

iframe src="http://shipviewer.ericmartindale.com/ships/ark/embed?width=940&height=618" scrolling="no" frameborder="0" width="940" height="618" /iframe

You can copy/paste the embed code from each ship's dedicated page. (Sadly, the forums here don't have a [code] BBCode so I can't share the actual HTML.)

You can also browse the available ship classes via the menu on the front page. Not all ships are available, but when CCP makes them available in the Ship Browser, they will automatically be made available on this site. :)

Feedback appreciated! I hope you guys enjoy.
DeMichael Crimson
Republic University
Minmatar Republic
#2 - 2013-02-17 20:21:53 UTC
Very nice. Site bookmarked for future reference.

+1 like for the op.



DMC
Solstice Project
Sebiestor Tribe
Minmatar Republic
#3 - 2013-02-17 20:29:13 UTC
Why webgl, for something i can't even rotate ?
Baeryn
Sol Enterprises
#4 - 2013-02-17 20:34:05 UTC
Solstice Project wrote:
Why webgl, for something i can't even rotate ?


If you're getting a static image, it's because your browser is failing to initialize the 3D context. On Windows / Mac, Chrome should load the rotateable/zoomable model just fine, but I have to use Chromium on Linux.
Solstice Project
Sebiestor Tribe
Minmatar Republic
#5 - 2013-02-17 20:55:45 UTC
Baeryn wrote:
Solstice Project wrote:
Why webgl, for something i can't even rotate ?


If you're getting a static image, it's because your browser is failing to initialize the 3D context. On Windows / Mac, Chrome should load the rotateable/zoomable model just fine, but I have to use Chromium on Linux.

Aaaaahhhhhhhhhhh true, i finally should update my Opera.
I totally forgot. -.-
Renzo Ruderi
Doomheim
#6 - 2013-02-17 20:59:12 UTC
Yarr nice job, only problem I saw was the dropdown for ship selection went off the page, so I couldn't get past G on the alphabet.
Whitehound
#7 - 2013-02-17 21:03:59 UTC
The scroll-wheel (zoom in/out) works opposite to the way it works in game.

Loss is meaningful. Therefore is the loss of meaning likewise meaningful. It is the source of all trolling.

Baeryn
Sol Enterprises
#8 - 2013-02-17 21:04:45 UTC
Renzo Ruderi wrote:
Yarr nice job, only problem I saw was the dropdown for ship selection went off the page, so I couldn't get past G on the alphabet.


Nice find, I've fixed this with a scrollbar and a max-height on that dropdown. You can also use the browser at the bottom of the front page, which has a link to every available ship.
Miyammato Musashi
Freeport Exploration
Loosely Affiliated Pirates Alliance
#9 - 2013-02-17 21:12:35 UTC
I've been messing around with the ship viewer code too... one of the things I did was hack together a way to remove the background image. If you want to take a look at the code, I have it linked here.

I was just thinking, with your site it might be cool to give people a background-free embed option for people who want to add a ship with engine trails or something to their eve-related site!

I am a meat popsicle. 

Tarn Kugisa
Kugisa Dynamics
#10 - 2013-02-17 21:17:23 UTC
CCP needs to add more spaceships
very cool project though!

Be polite. Be efficient. Have a plan to troll everyone you meet - KuroVolt

Baeryn
Sol Enterprises
#11 - 2013-02-17 21:21:09 UTC
Miyammato Musashi wrote:
I've been messing around with the ship viewer code too... one of the things I did was hack together a way to remove the background image. If you want to take a look at the code, I have it linked here.

I was just thinking, with your site it might be cool to give people a background-free embed option for people who want to add a ship with engine trails or something to their eve-related site!


Great idea. It looks like `showCubemap` is what does it. Thanks for the tip, I'll be building a configurable embedding tool soon.
Miyammato Musashi
Freeport Exploration
Loosely Affiliated Pirates Alliance
#12 - 2013-02-17 21:37:23 UTC
Baeryn wrote:
Miyammato Musashi wrote:
I've been messing around with the ship viewer code too... one of the things I did was hack together a way to remove the background image. If you want to take a look at the code, I have it linked here.

I was just thinking, with your site it might be cool to give people a background-free embed option for people who want to add a ship with engine trails or something to their eve-related site!


Great idea. It looks like `showCubemap` is what does it. Thanks for the tip, I'll be building a configurable embedding tool soon.

Yah that's part of it... I didn't solve all the problems 100%. I haven't had time to work on it. You'll see what I'm talking about when you look into it. That said, there are also some very cool options for customization! You can put in sliders that adjust the intensity and length of engine trails, for instance. Lots of options people don't see in the ship viewer that are available. I think if you figure out the problem with the actual assets (you'll see what I'm talking about... ship lights can be a problem for instance) everyone will be basing future eve sites on your tool. That's exactly what my plan was until I understood the scope of the problem and realized I just don't have time right now to build what's needed. Good luck to you though!

I am a meat popsicle. 

Ottersmacker
Genos Occidere
TRUTH. HONOUR. LIGHT.
#13 - 2013-02-17 21:42:45 UTC
ccp still provides no thorax in webgl, how am i ever going to get all the ladies hooked to eve : (((

i just locked an open door.. strange, yet symbolically compelling.