Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


bjornp

Member Since 10 Mar 2013
Offline Last Active Sep 13 2014 08:27 AM

Posts I've Made

In Topic: GET request contains addional non wanted data for XML document

13 September 2014 - 06:48 AM

Thank you for the answers. I've uploaded a file here which contains the raw data i receive:

 

http://speedy.sh/69QPv/weather4.txt

 

I read your link Endurion and it seems you are correct! I was thinking along these lines in the beginning but when Reading 8000 bytes it landed me in the middle of the XML, however the number was encoded in hexadecimal, which is 32767.

 

Thank you Glass_Knife and Endurion for your help :)


In Topic: GET request contains addional non wanted data for XML document

12 September 2014 - 08:42 AM

This is how i parse it:

  NetClient client = new NetClient();
  String temp = client.GetData(60.10F,9.58F,70);

DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
  DocumentBuilder dBuilder;
  try
  {
   dBuilder = dbFactory.newDocumentBuilder();
   InputStream is = new ByteArrayInputStream(temp.getBytes());
   Document doc = dBuilder.parse(is);
  }

And thank you for the fast reply smile.png

 

I do save it as a txt file aswell, just the pure data received, but it contains the "008000" aswell which is why i checked the packets using wireshark. Perhaps i should try another server aswell and see if it remains.


In Topic: [Solved] Depth not working

07 June 2014 - 12:01 PM

Ok i found the problem. I was using the DirectX Toolkit to render text which disables the depthbuffer to do so, I just had to enable it again :)

 

D3DDeviceContext->OMSetDepthStencilState(pDSState, 1);

In Topic: [Solved] Need help with a warning when compiling Double to float, loss of data

27 April 2014 - 01:49 AM

Never mind, solved it by changing x and z to float instead of double.


In Topic: [SharpDX][.Net] Rendertargets dont display correctly when used as textures

19 March 2013 - 11:38 PM

Hi, MJP and thank you for your answer. The first thing i do in my drawing code is
Context.outputmerger.resettargets()
So I don't think that is the case, if i don't do this the shaderresourceviews don't show up at all in perfstudio.

PARTNERS